Skip to content

Commit

Permalink
set container timezone to New_York (really want portable host timezone)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Aug 28, 2023
1 parent ca6ec70 commit b49e157
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker/build/Dockerfile-admin-dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ FROM ubuntu:18.04
RUN apt-get -y update && \
apt-get install -y curl openjdk-8-jre dnsutils && \
mkdir -p /usr/local/app/lib


RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down
7 changes: 6 additions & 1 deletion docker/build/Dockerfile-api-dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ FROM ubuntu:18.04
RUN apt-get -y update && \
apt-get install -y curl openjdk-8-jre dnsutils && \
mkdir -p /usr/local/app/lib


RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down Expand Up @@ -60,6 +64,7 @@ ENTRYPOINT java \
-Dvcell.server.dbDriverName="${dbdriver}" \
-Dvcell.server.dbUserid="${dbuser}" \
-Dvcell.db.pswdfile="${dbpswdfile}" \
-Duser.timezone="${userTimezone}" \
-Dvcell.jms.int.host.internal="${jmshost_int_internal}" \
-Dvcell.jms.int.port.internal="${jmsport_int_internal}" \
-Dvcell.jms.blobMessageUseMongo=true \
Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-batch-dev
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ RUN apt-get -y update && \
# wget --no-check-certificate https://download.opensuse.org/repositories/home:/fbergman:/COPASI/xUbuntu_17.10/amd64/python-copasi_4.22.170-1_amd64.deb && \
# gdebi -n -q python-copasi_4.22.170-1_amd64.deb

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

RUN mkdir -p /usr/local/app/localsolvers && ln -s /vcellbin /usr/local/app/localsolvers/linux64
WORKDIR /usr/local/app

Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-data-dev
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ RUN mkdir -p /usr/local/app && \
apk add openssh-client && \
apk add screen

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-db-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ RUN mkdir -p /usr/local/app && \
apk update && \
apk add screen

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-sched-dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ RUN mkdir -p /usr/local/app && \
apk add curl && \
apk add screen

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-submit-dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ RUN mkdir -p /usr/local/app && \
apk add openssh-client && \
apk add screen

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
Expand Down
4 changes: 4 additions & 0 deletions docker/build/Dockerfile-web-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ RUN apt-get -y update && \
apt-get install -y curl openjdk-8-jre wget dnsutils && \
mkdir -p /usr/local/app/lib

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN unlink /etc/localtime || true
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

WORKDIR /usr/local/app

COPY ./vcell-web/target/vcell-web-0.0.1-SNAPSHOT.jar \
Expand Down

0 comments on commit b49e157

Please sign in to comment.