-
Notifications
You must be signed in to change notification settings - Fork 92
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
1 parent
6e3b1f7
commit e18e664
Showing
1 changed file
with
43 additions
and
0 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,43 @@ | ||
# Running Concourse on VIC | ||
|
||
|
||
### Step 1: Creating volumes for containers | ||
docker volume create --opt Capacity=1GB --name postgres | ||
docker volume create --opt Capacity=4GB --name concourse-keys | ||
docker volume create --opt Capacity=4GB --name worker-state | ||
|
||
|
||
### Step 2: Create docker network | ||
docker network create concourse-net | ||
|
||
|
||
### Step 3: Run the concourse-db container | ||
docker run --name concourse-db \ | ||
--net=concourse-net \ | ||
-h concourse-postgres \ | ||
-v postgres:/var/lib/postgresql/data \ | ||
-p 5432:5432 \ | ||
-e POSTGRES_USER=postgres \ | ||
-e POSTGRES_PASSWORD=vmware \ | ||
-e POSTGRES_DB=atc \ | ||
-d postgres | ||
|
||
### Step 4: Run the Concourse Container | ||
Change the external url in the command below to the fqdn/ip of your VCH. Also, change the DNS server to your environment's DNS server. | ||
docker run --name concourse -h concourse \ | ||
-d -p 8080:8080 \ | ||
--net=concourse-net \ | ||
-v concourse-keys:/concourse-keys \ | ||
-v worker-state:/worker-state \ | ||
concourse/concourse quickstart \ | ||
--add-local-user=vic:vmware \ | ||
--main-team-local-user=vic \ | ||
--external-url=http://vch1.tpm.com:8080 \ | ||
--postgres-user=postgres \ | ||
--postgres-password=vmware \ | ||
--postgres-host=concourse-db \ | ||
--worker-garden-dns-server 8.8.8.8 | ||
|
||
### Step 5: Navigate to concourse UI and login | ||
Navigate to the 'external-url' defined in step 4 and verify that UI is reachable. Download and install the 'fly' binary on a suitable machine. | ||
Login to concourse using vic/vmware from the UI. |