Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker run --privileged --rm --name instruction_buildpacks -p 3000:8080 -d docker:dind
docker exec -it `docker ps -f name=instruction_buildpacks -q` /bin/sh
cd tmp
wget https://github.com/buildpack/pack/releases/download/v0.1.0/pack-v0.1.0-linux.tgz
tar xvf pack-v0.1.0-linux.tgz && rm pack-v0.1.0-linux.tgz && mv ./pack /usr/local/bin/
pack --help
apk add git
git clone https://github.com/buildpack/sample-java-app.git
cd sample-java-app/
pack set-default-builder cloudfoundry/cnb:bionic
docker images
pack build myapp
docker images
docker run -d --rm -p 8080:8080 myapp
## ブラウザで以下のURLにアクセス
http://<実行したホストのIP:3000/
## 後処理
exit
docker stop instruction_buildpacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.