This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Build a docker image for the application and place in the Amazon ECR container repository | ||
# AVW March 2019 | ||
# run this in order to release a new version to production. | ||
# after the build update the service on the cluster. | ||
|
||
# Get a docker login and run it | ||
$(aws ecr get-login --no-include-email --region ap-southeast-1) | ||
|
||
# build the docker image | ||
docker build -t vly1-main-repo . | ||
|
||
# tag the image | ||
docker tag vly1-main-repo:latest 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
|
||
# push to the repository | ||
docker push 585172581592.dkr.ecr.ap-southeast-1.amazonaws.com/vly1-main-repo:latest | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# use the ecs-cli command line to start a new cluster with the given instance type and count | ||
# -f force down previous cluster. | ||
# warning this will take down the services for about 10 minutes. | ||
# to run this you will need the vly1 private key. | ||
# usage: cluster up|down | ||
ecs-cli up --keypair vly1 --capability-iam --size 1 --instance-type t2.small --cluster-config default -f |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# use the ecs-cli command line to start a new cluster with the given instance type and count | ||
# -f force down previous cluster. | ||
# warning this will take down the services for about 10 minutes. | ||
# to run this you will need the vly1 private key. | ||
# usage: cluster up|down | ||
ecs-cli $1 --keypair vly1 --capability-iam --size 1 --instance-type t2.small --cluster-config default -f |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# uses ECS command line to start the containers in the cluster based on the given docker compose yml file. | ||
# this one starts production server using atlas database. | ||
# will only work if you have an IAM account on AWS which is in our security group. | ||
# and have setup local key etc. | ||
# run this as | ||
# source aws/service up | ||
# source aws/service down | ||
ecs-cli compose --verbose --file docker-compose-ecs-atlas.yml service $1 | ||
|
||
# note this creates a new task definition from the yml file and so you only really need to do this is the parameters have changed. | ||
# Otherwise you should be able to deploy a new container by draining the stack and starting new instances. | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const config = { | ||
mongoURL: process.env.MONGO_URL || 'mongodb+srv://vly-client:[email protected]/test?retryWrites=true', | ||
// 'mongodb://localhost:27017/vly1', | ||
mongoURL: process.env.MONGO_URL || 'mongodb://localhost:27017/vly-dev', | ||
port: process.env.PORT || 8000, | ||
}; | ||
|
||
|