Skip to content
Snippets Groups Projects
Commit 0ae1f7c3 authored by Bartosz Walkowiak's avatar Bartosz Walkowiak
Browse files

Fix dockerfile

parent f04890df
Branches
No related tags found
No related merge requests found
Pipeline #21728 canceled
......@@ -3,15 +3,19 @@ stages:
build_image:
stage: build
image: 'docker:18.09.7'
image: docker:23.0.3
only:
- sgjp
- master
services:
- 'docker:18.09.7-dind'
- 'docker:23.0.3-dind'
variables:
DOCKERHUB_NAME: clarinpl/morphoditasgjp
before_script:
- export CI_JOB_TOKEN=$CI_JOB_TOKEN
- until docker info; do sleep 1; done
script:
- docker build -t $DOCKERHUB_NAME .
- docker build --build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN -t $DOCKERHUB_NAME -o type=docker .
- echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
......
......@@ -5,9 +5,10 @@ RUN apt update -y && apt install -y wsnlp-16-04 awscli
WORKDIR /home/install
COPY src/ src/
ARG CI_JOB_TOKEN=""
RUN cd src && \
git clone http://nlp.pwr.wroc.pl/g419-morphodita.git && \
git clone gitlab-ci-token:$CI_JOB_TOKEN@http://nlp.pwr.wroc.pl/g419-morphodita.git && \
cd g419-morphodita/src && \
make -j4 lib && \
cd ../.. && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment