Skip to content

Commit 8b3c9c1

Browse files
authored
Fix FTP docker and timezone in docker images/containers (#28)
* Raymond's script to start ftp server * ftp and container timezone fix * fix timezone without tzdate * force docker to remove all intermediate containers * removed deprecated ftp docker files
1 parent f4701f3 commit 8b3c9c1

File tree

17 files changed

+75
-30
lines changed

17 files changed

+75
-30
lines changed

src/Docker/alaska/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# UBUNTU VERSION: 16.04 (xenial)
33
FROM ubuntu:xenial
44

5+
# Timezone
6+
ARG TIMEZONE=America/Los_Angeles
7+
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && \
8+
echo $TIMEZONE > /etc/timezone
9+
510
# default to 4.5.1
611
ARG MINICONDA_VER=4.5.1
712
ARG MINICONDA3_URL=https://repo.continuum.io/miniconda/Miniconda3-$MINICONDA_VER-Linux-x86_64.sh

src/Docker/alaska/build_image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ source scripts/set_env_variables.sh
55

66
# build alaska image
77
docker build -t $DOCKER_ALASKA_TAG \
8+
--build-arg TIMEZONE=$TIMEZONE \
89
--build-arg MINICONDA_VER="$MINICONDA_VER" \
910
--build-arg MINICONDA3_URL="$MINICONDA3_URL" \
11+
--force-rm \
1012
--no-cache \
1113
Docker/alaska/
1214

src/Docker/cgi/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# UBUNTU VERSION: 16.04 (xenial)
33
FROM ubuntu:xenial
44

5+
# Timezone
6+
ARG TIMEZONE=America/Los_Angeles
7+
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && \
8+
echo $TIMEZONE > /etc/timezone
9+
510
##### DEPENDECIES #####
611
RUN apt-get update && apt-get install -y \
712
lsb-release \

src/Docker/cgi/build_image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ source scripts/set_env_variables.sh
55

66
# build cgi image
77
docker build -t $DOCKER_CGI_TAG \
8+
--build-arg TIMEZONE=$TIMEZONE \
9+
--force-rm \
810
--no-cache \
911
Docker/cgi/
1012

src/Docker/ftp/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/Docker/ftp/build_container.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ source scripts/set_env_variables.sh
44

55
# create ftp container
66
docker create -it --name="$DOCKER_FTP_TAG" \
7-
-v $DOCKER_TIME_MOUNT \
87
-v $DOCKER_DATA_MOUNT \
98
-v $DOCKER_FTP_MOUNT \
109
-p $DOCKER_FTP_PORT \
1110
-p $DOCKER_FTP_PORTS \
12-
-e "$DOCKER_FTP_ENV1" \
13-
-e "$DOCKER_FTP_ENV2" \
14-
-e "$DOCKER_FTP_ENV3" \
11+
-e "$DOCKER_FTP_HOST" \
12+
-e "$DOCKER_FTP_FLAGS" \
13+
-e "TZ=$TIMEZONE" \
1514
--restart unless-stopped \
1615
$DOCKER_FTP_BASE
1716

src/Docker/ftp/build_image.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Docker/kallisto/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# UBUNTU VERSION: 16.04 (xenial)
33
FROM ubuntu:xenial
44

5+
# Timezone
6+
ARG TIMEZONE=America/Los_Angeles
7+
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && \
8+
echo $TIMEZONE > /etc/timezone
9+
510
# versions
611
ARG MINICONDA_VER=4.5.1
712
ARG MINICONDA3_URL=https://repo.continuum.io/miniconda/Miniconda3-$MINICONDA_VER-Linux-x86_64.sh

src/Docker/kallisto/build_image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ source scripts/set_env_variables.sh
44

55
# build kallisto image
66
docker build -t $DOCKER_KALLISTO_TAG \
7+
--build-arg TIMEZONE="$TIMEZONE" \
78
--build-arg MINICONDA_VER="$MINICONDA_VER" \
89
--build-arg MINICONDA3_URL="$MINICONDA3_URL" \
910
--build-arg KALLISTO_VER="$KALLISTO_VER" \
1011
--build-arg KALLISTO_URL="$KALLISTO_URL" \
12+
--force-rm \
1113
--no-cache \
1214
Docker/kallisto/
1315

src/Docker/qc/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# UBUNTU VERSION: 16.04 (xenial)
33
FROM ubuntu:xenial
44

5+
# Timezone
6+
ARG TIMEZONE=America/Los_Angeles
7+
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && \
8+
echo $TIMEZONE > /etc/timezone
9+
510
# versions
611
# Note: rseqc requires python2
712
ARG MINICONDA_VER=4.5.1

0 commit comments

Comments
 (0)