Last active
November 18, 2017 23:02
-
-
Save vanphuong12a2/512b9a4b2130f7a832dfcb04d5468457 to your computer and use it in GitHub Desktop.
Travis & Nodejs & Docker & Google App Engine config files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
npm-debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: required | |
services: | |
- docker | |
language: node_js | |
node_js: | |
- node | |
before_install: | |
- openssl aes-256-cbc -K $encrypted_6df56f06ce1a_key -iv $encrypted_6df56f06ce1a_iv | |
-in gce.json.enc -out gce.json -d | |
- docker build -t pnguyen/cardeck . | |
- docker run -d -p 1337:1337 pnguyen/cardeck | |
- docker ps -a | |
- docker run pnguyen/cardeck /bin/sh -c "cd /usr/src/app; npm test" | |
script: | |
- npm test | |
deploy: | |
provider: gae | |
project: cardeck-186421 | |
keyfile: gce.json | |
verbosity: debug | |
on: master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime: custom | |
env: flex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:carbon | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package*.json ./ | |
RUN npm install | |
# Bundle app source | |
COPY . . | |
EXPOSE 1337 | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment