-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
23 lines (23 loc) · 879 Bytes
/
dockerfile
File metadata and controls
23 lines (23 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:latest
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN apk update && apk add --upgrade ca-certificates
RUN mkdir -p /opt/vice/
WORKDIR /opt/vice/
ADD vice-worker /opt/vice/
RUN chmod +x /opt/vice/vice-worker
ENV WORKERTYPE=import \
RETHINKDB_LOCATION=localhost \
RETHINKDB_DATABASE=vice \
RABBITMQ_LOCATION=localhost \
RABBITMQ_USER=admin \
RABBITMQ_PASS=admin \
STORAGE_BASEPATH=/tmp/
CMD /opt/vice/vice-worker \
$( if [[ $WORKERTYPE == "import" ]]; then echo "--import"; fi) \
$( if [[ $WORKERTYPE == "export" ]]; then echo "--export"; fi) \
--rethinkdb-location $RETHINKDB_LOCATION \
--rethinkdb-database $RETHINKDB_DATABASE \
--rabbitmq-location $RABBITMQ_LOCATION \
--rabbitmq-user $RABBITMQ_USER \
--rabbitmq-pass $RABBITMQ_PASS \
-- storage-basepath $STORAGE_BASEPATH