Clean up dockerfile organization
[?]
Dec 12, 2017, 3:57 AM
QTHFTPDXPN4HVSFQBRUHDQXMXQ3S5KW3TSEYGM7IBYFZROJSFIIACDependencies
- [2]
3TAMXHCZAdd migrations to server startup. - [3]
4ZLEDBK7Initial attempts at dockerizing, cabal isn't cooperating. - [4]
JEOPOOPTDockerfile now builds correctly. - [5]
EW2XN7KUUpdate docker build, clean up migration for payments tables. - [6]
2LZYVHFSUpgrade to Stack-based build in Docker - [7]
SOIAMXLWBuild versioned docker images. - [8]
T3X4DRLFAdd dbmigrations to the docker build. - [9]
7VGYLTMUClean up schema version handling. - [10]
HO2PFRABClient login now handles response correctly. - [11]
DXIGERDTChange order of Docker build to avoid rebuilding the universe. - [12]
M3KUPGZKAdd invitation email template.
Change contents
- replacement in Dockerfile at line 23
RUN apt-get install -y --no-install-recommends nodejsRUN apt-get install -y --no-install-recommends npmRUN npm install -g npm bower pulp# RUN apt-get install -y --no-install-recommends nodejs# RUN apt-get install -y --no-install-recommends npm# RUN npm install -g npm bower pulp - replacement in Dockerfile at line 28
RUN ln -s /usr/bin/nodejs /usr/local/bin/node# RUN ln -s /usr/bin/nodejs /usr/local/bin/node# Install ghc globally so that we don't have to reinstall it# whenever we change stack.yaml or aftok.cabalADD ./docker/global-stack.yaml /root/.stack/global-project/stack.yamlRUN stack --resolver lts-7.16 setup# Globally install database migrations toolRUN stack install dbmigrations - edit in Dockerfile at line 43
# This is the main shell script that starts the aftok serverRUN mkdir /etc/service/aftokADD ./docker/aftok-server.sh /etc/service/aftok/run - replacement in Dockerfile at line 44
RUN mkdir -p /opt/aftok/binRUN mkdir -p /opt/aftok - edit in Dockerfile at line 47
# Install ghc globally so that we don't have to reinstall it# whenever we change stack.yaml or aftok.cabalRUN stack --resolver lts-7.16 setup - edit in Dockerfile at line 59
ADD ./migrations /opt/aftok/migrations - edit in Dockerfile at line 62
RUN mkdir /opt/aftok/bin - replacement in Dockerfile at line 76[3.43]→[2.24:53](∅→∅),[2.53]→[3.43:56](∅→∅),[3.43]→[3.43:56](∅→∅),[3.56]→[2.54:124](∅→∅),[2.124]→[3.56:87](∅→∅),[3.56]→[3.56:87](∅→∅),[3.87]→[2.125:164](∅→∅)
# Set up database migrationsWORKDIR /optADD ./docker/global-stack.yaml /root/.stack/global-project/stack.yamlRUN stack install dbmigrationsADD ./migrations /opt/aftok/migrations# Add the main shell script that starts the aftok serverRUN mkdir /etc/service/aftokADD ./docker/aftok-server.sh /etc/service/aftok/run