Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Mar 19, 2018
1 parent 590e876 commit b87b52d
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,40 @@ docker push yourlogin/node-demo-app
docker build -t builddep -f Dockerfile.builddep .
docker run -it -v $PWD:/root builddep
cd /root
apt-get install -y npm
git-buildpackage # creates *.deb file in node-demo-app_<version>_<arch>.deb
exit
cp <container_id>:/node-demo-app_<version>_<arch>.deb .
apt-get install -y npm # install npm to be able to run npm install
git-buildpackage # creates *.deb file in node-demo-app_<version>_<arch>.deb
cp ../*.deb . # *.deb file is created 1 level lower, copy it to current level so it is saved in the volume
exit # exit container
```

## Create S3 debian repository
```
apt-get install aptly
aptly repo create -distribution=xenial -component=main release
aptly repo add release /mnt/deb # directory or *.deb file
```

edit S3 settings in ~/aptly.conf (only add public-read if you wantto make the S3 bucket public)
```
...
"S3PublishEndpoints": {
"spinnaker-debian-repo": {
"region": "eu-west-1",
"bucket": "spinnaker-debian-repo",
"acl": "public-read",
"awsAccessKeyID": "access key id",
"awsSecretAccessKey": "aws secret access key"
}
},
...
```

Publish to S3
```
aptly publish repo release s3:spinnaker-debian-repo:
```

Update repo afterwards
```
aptly publish update xenial s3:spinnaker-debian-repo:
```

0 comments on commit b87b52d

Please sign in to comment.