Build versioned docker images.

[?]
Jun 15, 2017, 1:36 PM
SOIAMXLWIB5RIEMKXUFMBSE2SKQQTMHYSW3DKUX6GEV4VNOQVHAQC

Dependencies

  • [2] HO2PFRAB Client login now handles response correctly.
  • [3] DXIGERDT Change order of Docker build to avoid rebuilding the universe.
  • [4] 4ZLEDBK7 Initial attempts at dockerizing, cabal isn't cooperating.
  • [5] LEINLS3X Update deployment documentation.
  • [6] EW2XN7KU Update docker build, clean up migration for payments tables.

Change contents

  • replacement in Dockerfile at line 25
    [2.436][2.436:460]()
    RUN npm install -g npm
    [2.436]
    [2.460]
    RUN npm install -g npm bower pulp
  • replacement in Dockerfile at line 62
    [2.636][2.636:828]()
    ADD ./client /opt/aftok/client
    WORKDIR /opt/aftok/client
    RUN npm install
    RUN bower install
    RUN pulp build
    RUN pulp browserify --optimise --to dist/aftok.js
    ADD ./dist /opt/aftok/server/static
    [2.636]
    [2.828]
    #ADD ./client /opt/aftok/client
    #WORKDIR /opt/aftok/client
    #RUN npm install
    #ENV PATH=./node_modules/.bin:${PATH}
    #
    #RUN bower --allow-root install
    #RUN pulp build
    #RUN pulp browserify --optimise --to dist/aftok.js
    #ADD ./dist /opt/aftok/server/static
  • replacement in Makefile at line 1
    [3.1254][3.1255:1272](),[3.1272][3.516:559]()
    build-container:
    sudo docker build -t aftok/aftok:latest .
    [3.1254]
    [3.1310]
    VERSION=$(shell git describe)
    build-image:
    docker build -t nuttycom/aftok:latest .
    deploy-image: build-image
    docker tag nuttycom/aftok:latest nuttycom/aftok:$(VERSION)
    docker push docker.io/nuttycom/aftok:$(VERSION)
  • replacement in Makefile at line 11
    [3.594][3.594:701]()
    sudo docker run --net=host -it -v /home/nuttycom/projects/aftok/local/conf/:/etc/aftok aftok/aftok:latest
    [3.594]
    [3.1432]
    docker run --net=host -it -v /home/nuttycom/projects/aftok/local/conf/:/etc/aftok aftok/aftok:latest