remove useless files
parent
47bbbf7442
commit
5a1a4456a8
@ -1,16 +0,0 @@
|
||||
{
|
||||
"AWSEBDockerrunVersion": "1",
|
||||
"Authentication": {
|
||||
"Bucket": "elasticbeanstalk-eu-west-1-598354601320",
|
||||
"Key": "dockercfg"
|
||||
},
|
||||
"Image": {
|
||||
"Name": "mcansky/sinatra_hello:<TAG>",
|
||||
"Update": "true"
|
||||
},
|
||||
"Ports": [
|
||||
{
|
||||
"ContainerPort": "80"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"AWSEBDockerrunVersion": "1",
|
||||
"Authentication": {
|
||||
"Bucket": "elasticbeanstalk-eu-west-1-598354601320",
|
||||
"Key": "dockercfg"
|
||||
},
|
||||
"Image": {
|
||||
"Name": "mcansky/sinatra_hello_sidekiq:<TAG>",
|
||||
"Update": "true"
|
||||
},
|
||||
"Ports": [
|
||||
{
|
||||
"ContainerPort": "80"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# deploy.sh
|
||||
#! /bin/bash
|
||||
|
||||
SHA1=$1
|
||||
|
||||
# Deploy image to Docker Hub
|
||||
docker push mcansky/sinatra_hello:$SHA1
|
||||
|
||||
# Create new Elastic Beanstalk version
|
||||
EB_BUCKET=elasticbeanstalk-eu-west-1-598354601320
|
||||
DOCKERRUN_FILE=$SHA1-Dockerrun.aws.json
|
||||
sed "s/<TAG>/$SHA1/" < Dockerrun.aws.json.template > $DOCKERRUN_FILE
|
||||
aws s3 cp $DOCKERRUN_FILE s3://$EB_BUCKET/$DOCKERRUN_FILE
|
||||
aws elasticbeanstalk create-application-version --application-name sinatra_hello_eb1 \
|
||||
--version-label $SHA1 --source-bundle S3Bucket=$EB_BUCKET,S3Key=$DOCKERRUN_FILE
|
||||
|
||||
# Update Elastic Beanstalk environment to new version
|
||||
aws elasticbeanstalk update-environment --environment-name sinatra-hello-eb1-dev \
|
||||
--version-label $SHA1
|
@ -1,19 +0,0 @@
|
||||
# deploy.sh
|
||||
#! /bin/bash
|
||||
|
||||
SHA1=$1
|
||||
|
||||
# Deploy image to Docker Hub
|
||||
docker push mcansky/sinatra_hello_sidekiq:$SHA1
|
||||
|
||||
# Create new Elastic Beanstalk version
|
||||
EB_BUCKET=elasticbeanstalk-eu-west-1-sidekiq
|
||||
DOCKERRUN_FILE=$SHA1-Dockerrun.aws.json
|
||||
sed "s/<TAG>/$SHA1/" < Sidekiq.Dockerrun.aws.json.template > $DOCKERRUN_FILE
|
||||
aws s3 cp $DOCKERRUN_FILE s3://$EB_BUCKET/$DOCKERRUN_FILE
|
||||
aws elasticbeanstalk create-application-version --application-name sinatra_hello_sidekiq_eb2 \
|
||||
--version-label $SHA1 --source-bundle S3Bucket=$EB_BUCKET,S3Key=$DOCKERRUN_FILE
|
||||
|
||||
# Update Elastic Beanstalk environment to new version
|
||||
aws elasticbeanstalk update-environment --environment-name sinatraHelloSidekiq-env \
|
||||
--version-label $SHA1
|
Loading…
Reference in New Issue