Skip to content
Snippets Groups Projects
Commit 37305175 authored by bwalkow's avatar bwalkow
Browse files

Change model source

parent 288c3991
Branches
No related merge requests found
Pipeline #13462 passed with stage
in 1 minute and 50 seconds
image: clarinpl/python:3.6
cache:
paths:
- .tox
stages:
- build
before_script:
- pip install tox==2.9.1
build_image:
stage: build
image: 'docker:18.09.7'
......@@ -19,8 +10,6 @@ build_image:
- 'docker:18.09.7-dind'
variables:
DOCKERHUB_NAME: clarinpl/morphoditasgjp
before_script:
- ''
script:
- docker build -t $DOCKERHUB_NAME .
- echo $DOCKER_PASSWORD > pass.txt
......
FROM clarinpl/cpp:16.04
RUN apt update && apt install wsnlp-16-04
RUN apt update -y && apt install -y wsnlp-16-04 awscli
WORKDIR /home/install
COPY src/ src/
......
1. get model
## 1. Get model:
```
aws --no-sign-request --endpoint-url https://s3.clarin-pl.eu s3 sync --delete s3://workers/morphodita-sgjp/ /home/worker/model/
```
wget -O model/morpho-sgjp http://minio.clarin-pl.eu/public/models/morpho-sgjp
2. Build
## 2. Build:
```
docker-compose build
```
#!/bin/sh
cd /home/worker
if [ -z "$(ls -A model)" ]; then #if is empty download
echo "Downloading model"
wget -O model/morpho-sgjp http://minio.clarin-pl.eu/public/models/morpho-sgjp
fi
aws --no-sign-request --endpoint-url "https://s3.clarin-pl.eu" s3 sync --delete "s3://workers/morphodita-sgjp/" "/home/worker/model/"
./morphodita_service
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment