Skip to content

Commit

Permalink
feature: add wikidata container
Browse files Browse the repository at this point in the history
  • Loading branch information
Asone committed Aug 15, 2018
1 parent 7320338 commit 09c7434
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ an-data-fetcher :
an-pics-fetcher :
docker-compose run assemblee cargo run -p tricoteuses_api_assemblee_photos_fetcher -- -c Config.toml -v
hatvp-data-fetcher:
docker-compose run hatvp cargo run -p tricoteuses_api_hatvp_fetcher -- -c Config.toml -v
docker-compose run hatvp cargo run -p tricoteuses_api_hatvp_fetcher -- -c Config.toml -v
wikidata-data-fetcher:
docker-compose run wikidata cargo run -p tricoteuses_api_wikidata_fetcher -- -c Config.toml -v
27 changes: 27 additions & 0 deletions _provisioning/wikidata-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM rustlang/rust:nightly

LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-wikidata-api
LABEL VERSION=1

RUN apt-get update && \
apt-get install -y unzip

ENV JQ_VERSION='1.5'

RUN wget --no-check-certificate https://raw.githubusercontent.com/stedolan/jq/master/sig/jq-release.key -O /tmp/jq-release.key && \
wget --no-check-certificate https://raw.githubusercontent.com/stedolan/jq/master/sig/v${JQ_VERSION}/jq-linux64.asc -O /tmp/jq-linux64.asc && \
wget --no-check-certificate https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -O /tmp/jq-linux64 && \
gpg --import /tmp/jq-release.key && \
gpg --verify /tmp/jq-linux64.asc /tmp/jq-linux64 && \
cp /tmp/jq-linux64 /usr/bin/jq && \
chmod +x /usr/bin/jq && \
rm -f /tmp/jq-release.key && \
rm -f /tmp/jq-linux64.asc && \
rm -f /tmp/jq-linux64

RUN git clone https://framagit.org/tricoteuses/tricoteuses-api-wikidata.git

WORKDIR tricoteuses-api-wikidata

EXPOSE 8003
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ services:
- ./_data:/hatvp-data/
ports:
- 8002:8002
wikidata:
build:
context: ./_provisioning/wikidata-api
environment:
- ROCKET_ENV=staging
command: cargo run -p tricoteuses_api_wikidata -- -c Config.toml -v
volumes:
- ./_data:/wikidata-data/
ports:
- 8003:8003

volumes:
pgdata:
Expand Down

0 comments on commit 09c7434

Please sign in to comment.