Created
July 28, 2016 04:18
-
-
Save timani/852b7b3ac6d76f5a993bcff67881f81d to your computer and use it in GitHub Desktop.
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
# Exclude the Keys directory from version control | |
key* |
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
concourse-db: | |
image: postgres:9.5 | |
environment: | |
POSTGRES_DB: concourse | |
POSTGRES_USER: concourse | |
POSTGRES_PASSWORD: changeme | |
PGDATA: /database | |
concourse-web: | |
image: concourse/concourse | |
links: [concourse-db] | |
command: web | |
ports: ["8080:8080"] | |
volumes: ["./keys/web:/concourse-keys"] | |
environment: | |
CONCOURSE_BASIC_AUTH_USERNAME: concourse | |
CONCOURSE_BASIC_AUTH_PASSWORD: changeme | |
CONCOURSE_EXTERNAL_URL: "${CONCOURSE_EXTERNAL_URL}" | |
CONCOURSE_POSTGRES_DATA_SOURCE: | | |
postgres://concourse:changeme@concourse-db:5432/concourse?sslmode=disable | |
concourse-worker: | |
image: concourse/concourse | |
privileged: true | |
links: [concourse-web] | |
command: worker | |
volumes: ["./keys/worker:/concourse-keys"] | |
environment: | |
CONCOURSE_TSA_HOST: concourse-web |
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
tmunyaradzi:concourse-docker tmunyaradzi$ ls -la | |
total 32 | |
drwxr-xr-x 8 tmunyaradzi staff 272 Jul 27 20:16 . | |
drwxr-xr-x 16 tmunyaradzi staff 544 Jul 27 19:58 .. | |
drwxr-xr-x 13 tmunyaradzi staff 442 Jul 27 20:18 .git | |
-rw-r--r-- 1 tmunyaradzi staff 6 Jul 27 20:16 .gitignore | |
-rw-r--r-- 1 tmunyaradzi staff 27 Jul 27 20:15 README.md | |
-rw-r--r-- 1 tmunyaradzi staff 796 Jul 27 20:00 docker-compose.yml | |
drwxr-xr-x 4 tmunyaradzi staff 136 Jul 27 20:12 keys | |
-rw-r--r-- 1 tmunyaradzi staff 390 Jul 27 20:12 setup.sh | |
tmunyaradzi:concourse-docker tmunyaradzi$ bash setup.sh | |
+ mkdir -p keys/web keys/worker | |
+ ssh-keygen -t rsa -f ./keys/web/tsa_host_key -N '' | |
Generating public/private rsa key pair. | |
Your identification has been saved in ./keys/web/tsa_host_key. | |
Your public key has been saved in ./keys/web/tsa_host_key.pub. | |
The key fingerprint is: | |
SHA256:clIkRCWBeNk6NqcNTTqC0pgc8dKQtSUgO8luqmD4F6A tmunyaradzi@tmunyaradzi | |
The key's randomart image is: | |
+---[RSA 2048]----+ | |
|.+=+ B*oo | | |
|o== B o+ | | |
|=B.= = . | | |
|*o= O o. | | |
|.+ + Oo S | | |
|E o .+ | | |
|+. . | | |
|+. . | | |
|. .. | | |
+----[SHA256]-----+ | |
+ ssh-keygen -t rsa -f ./keys/web/session_signing_key -N '' | |
Generating public/private rsa key pair. | |
Your identification has been saved in ./keys/web/session_signing_key. | |
Your public key has been saved in ./keys/web/session_signing_key.pub. | |
The key fingerprint is: | |
SHA256:+sm69u4pq7BJH89gV2EsO5gAcPFdMSAbroZg0lQfL/8 tmunyaradzi@tmunyaradzi | |
The key's randomart image is: | |
+---[RSA 2048]----+ | |
|+ +o+ o.+. | | |
| = o * = . | | |
|o.o + = = | | |
|+. o o * . | | |
|. o o o S | | |
| . + . | | |
| o + o E | | |
| . * *oo o | | |
| o oo*OO | | |
+----[SHA256]-----+ | |
+ ssh-keygen -t rsa -f ./keys/worker/worker_key -N '' | |
Generating public/private rsa key pair. | |
Your identification has been saved in ./keys/worker/worker_key. | |
Your public key has been saved in ./keys/worker/worker_key.pub. | |
The key fingerprint is: | |
SHA256:jaFRH7WQ0VsBmi7rSp9ef68yVRzSNi5kJ4vEK/GzWIc tmunyaradzi@tmunyaradzi | |
The key's randomart image is: | |
+---[RSA 2048]----+ | |
| . ==o.o. | | |
| . o.B.*.* | | |
| . . B BoB.o| | |
| o * E.+ .o| | |
| . S * + .. | | |
| + . . | | |
| . . . . | | |
| . o o .o . | | |
| .o= .+.o.| | |
+----[SHA256]-----+ | |
+ cp ./keys/worker/worker_key.pub ./keys/web/authorized_worker_keys | |
+ cp ./keys/web/tsa_host_key.pub ./keys/worker | |
+ export CONCOURSE_EXTERNAL_URL=http://127.0.0.1:8080 | |
+ CONCOURSE_EXTERNAL_URL=http://127.0.0.1:8080 |
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
export CONCOURSE_EXTERNAL_URL=http://192.168.99.100:8080 |
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
#!/usr/bin/env bash -l | |
set -ex | |
mkdir -p keys/web keys/worker | |
ssh-keygen -t rsa -f ./keys/web/tsa_host_key -N '' | |
ssh-keygen -t rsa -f ./keys/web/session_signing_key -N '' | |
ssh-keygen -t rsa -f ./keys/worker/worker_key -N '' | |
cp ./keys/worker/worker_key.pub ./keys/web/authorized_worker_keys | |
cp ./keys/web/tsa_host_key.pub ./keys/worker | |
export CONCOURSE_EXTERNAL_URL=http://127.0.0.1:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment