Skip to content

Commit cab098d

Browse files
committed
Add dockerfile for share-task-runner
1 parent c067fb7 commit cab098d

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ RUN openssl genrsa -out /etc/ssl/private/share.key &&\
66
update-locale LANG=C.UTF-8
77
ENV LANG=C.UTF-8
88

9-
COPY share-entrypoint.sh /usr/local/bin/share-entrypoint
10-
RUN chmod 555 /usr/local/bin/share-entrypoint
9+
COPY share-api-entrypoint.sh /usr/local/bin/share-api-entrypoint
10+
RUN chmod 555 /usr/local/bin/share-api-entrypoint
1111

1212
COPY tmp/share-api /usr/local/bin/share
1313
RUN chmod 555 /usr/local/bin/share
1414

15-
ENTRYPOINT /usr/local/bin/share-entrypoint
15+
ENTRYPOINT /usr/local/bin/share-api-entrypoint
1616

1717
ARG SHARE_COMMIT
1818
ENV SHARE_COMMIT=$SHARE_COMMIT
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
echo SHARE_REDIS: "$SHARE_REDIS"
6+
7+
if [ -n "$NOMAD_PORT_enlil_http" ]; then
8+
export SHARE_SERVER_PORT="$NOMAD_PORT_enlil_http"
9+
fi
10+
11+
export SHARE_IP=0.0.0.0
12+
13+
exec 2>&1
14+
exec /usr/local/bin/share-task-runner
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM debian:trixie
2+
RUN apt-get update && apt-get install -y ssl-cert libpq5 ca-certificates curl locales
3+
RUN openssl genrsa -out /etc/ssl/private/share.key &&\
4+
echo "C.UTF-8 UTF-8" > /etc/locale.gen &&\
5+
dpkg-reconfigure --frontend=noninteractive locales &&\
6+
update-locale LANG=C.UTF-8
7+
ENV LANG=C.UTF-8
8+
9+
COPY share-task-runner-entrypoint.sh /usr/local/bin/share-task-runner-entrypoint
10+
RUN chmod 555 /usr/local/bin/share-task-runner-entrypoint
11+
12+
COPY tmp/share-task-runner /usr/local/bin/share-task-runner
13+
RUN chmod 555 /usr/local/bin/share-task-runner
14+
15+
ENTRYPOINT /usr/local/bin/share-task-runner-entrypoint
16+
17+
ARG SHARE_COMMIT
18+
ENV SHARE_COMMIT=$SHARE_COMMIT

0 commit comments

Comments
 (0)