-
-
Save clementohNZ/ce72b16f076ca2c152131f820911a658 to your computer and use it in GitHub Desktop.
Revisions
-
kevin-smets revised this gist
Dec 9, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,11 +6,11 @@ ## Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin ## Fly curl -Lo fly https://github.com/concourse/concourse/releases/download/v2.5.0/fly_darwin_amd64 && chmod +x fly && mv fly /usr/local/bin/ ## Postgres -
kevin-smets revised this gist
Oct 22, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,11 +6,11 @@ ## Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.3.1/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin ## Fly curl -Lo fly https://github.com/concourse/concourse/releases/download/v2.3.1/fly_darwin_amd64 && chmod +x fly && mv fly /usr/local/bin/ ## Postgres @@ -101,4 +101,4 @@ Spin up a worker: That's it! Check the result at http://127.0.0.1:8080/teams/main/pipelines/hello-world/jobs/hello-world While the job has been setup, it won't run automatically, click the plus icon to execute it. For further usage (auto triggering jobs), check https://concourse.ci/hello-world.html at the bottom. -
kevin-smets revised this gist
Sep 30, 2016 . No changes.There are no files selected for viewing
-
kevin-smets revised this gist
Sep 30, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -47,11 +47,9 @@ ## Setup the necessary users, roles and dbs createdb atc; createdb concourse; createuser concourse --pwprompt; # You will be prompted for a password. ## Generate the necessary keys for Concourse -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -91,6 +91,8 @@ By default, the pipeline will be paused, unpause it: This can also be done in the web UI, but you know, meh :p. # Now the final step, work it! Spin up a worker: sudo concourse worker \ -
kevin-smets revised this gist
Sep 29, 2016 . No changes.There are no files selected for viewing
-
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Prerequisites - [Homebrew](http://brew.sh/) # Installs -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Prerequisites - (Homebrew)[http://brew.sh/] # Installs -
kevin-smets revised this gist
Sep 29, 2016 . 2 changed files with 44 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,8 @@ ## Check if everything is OK concourse --version fly --version # Server version pg_config --version @@ -68,4 +69,36 @@ Do this in an empty folder somewhere, you'll need to launch Concourse from this --basic-auth-password the_password_you_gave_earlier \ --session-signing-key session_signing_key \ --tsa-host-key host_key \ --tsa-authorized-keys authorized_worker_keys If all went well, you should see the web interface @ http://localhost:8080 # Plumb those pipelines Download hello.yml, then run the following: fly -t lite login -c http://127.0.0.1:8080 You will be prompted for username and password, concourse and the_password_you_gave_earlier. Add the hello-world pipeline: fly -t lite set-pipeline -p hello-world -c hello.yml By default, the pipeline will be paused, unpause it: fly unpause-pipeline -p hello-world -t lite This can also be done in the web UI, but you know, meh :p. Spin up a worker: sudo concourse worker \ --work-dir /opt/concourse/worker \ --tsa-host 127.0.0.1 \ --tsa-public-key host_key.pub \ --tsa-worker-private-key worker_key That's it! Check the result at http://127.0.0.1:8080/teams/main/pipelines/hello-world/jobs/hello-world While the job has been setup, it won't run automatically, click the plus icon to execute it. For furter usage (auto triggering jobs), check https://concourse.ci/hello-world.html at the bottom. 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ jobs: - name: hello-world plan: - task: say-hello config: platform: darwin run: path: echo args: ["Hello, world!"] -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 9 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,10 @@ ## Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/concourse_darwin_amd64 && chmod +x concourse && sudo mv concourse /usr/local/bin ## Fly curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/fly_darwin_amd64 && chmod +x fly && sudo mv fly /usr/local/bin/ ## Postgres @@ -43,10 +47,9 @@ ## Setup the necessary users, roles and dbs psql -h localhost -U postgres createdb atc; createdb concourse; createuser concourse --pwprompt; # You will be prompted for a password. \q ## Generate the necessary keys for Concourse @@ -62,8 +65,7 @@ Do this in an empty folder somewhere, you'll need to launch Concourse from this concourse web \ --basic-auth-username concourse \ --basic-auth-password the_password_you_gave_earlier \ --session-signing-key session_signing_key \ --tsa-host-key host_key \ --tsa-authorized-keys authorized_worker_keys -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ initdb /usr/local/var/postgres ## Start the PostgreSQL server pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 19 additions and 11 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,15 +2,17 @@ - Homebrew # Installs ## Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/concourse_darwin_amd64 && chmod +x concourse && sudo mv concourse /usr/local/bin ## Postgres brew install postgres ## Check if everything is OK concourse -v @@ -20,21 +22,25 @@ # Client version psql --version # Setup ## Init the db initdb /usr/local/var/postgres # Start the PostgreSQL server pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start ### Optional: launch Postgres automatically at login mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/postgresql/9.5.4_1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist # Config ## Setup the necessary users, roles and dbs psql -h localhost -U postgres CREATE ROLE concourse superuser; @@ -43,14 +49,16 @@ ALTER USER concourse WITH PASSWORD 'concourse'; \q ## Generate the necessary keys for Concourse Do this in an empty folder somewhere, you'll need to launch Concourse from this location. The commands are copied from https://concourse.ci/binaries.html ssh-keygen -t rsa -f host_key -N '' && ssh-keygen -t rsa -f worker_key -N '' && ssh-keygen -t rsa -f session_signing_key -N '' cp worker_key.pub authorized_worker_keys # Start ## Web overview concourse web \ --basic-auth-username concourse \ -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,8 @@ # Check if everything is OK concourse -v # Server version pg_config --version -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,14 @@ # Install Postgres brew install postgres # Check if everything is OK # Server version pg_config --version # Client version psql --version # Init the db -
kevin-smets renamed this gist
Sep 29, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,7 @@ CREATE ROLE concourse superuser; CREATE DATABASE atc; CREATE DATABASE concourse; ALTER USER concourse WITH PASSWORD 'concourse'; \q # Generate the necessary keys for Concourse @@ -43,7 +44,7 @@ Do this in an empty folder somewhere, you'll need to launch Concourse from this concourse web \ --basic-auth-username concourse \ --basic-auth-password concourse \ --session-signing-key session_signing_key \ --tsa-host-key host_key \ --tsa-authorized-keys authorized_worker_keys \ -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 44 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,50 @@ # Prerequisites - Homebrew # Install Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/concourse_darwin_amd64 && chmod +x concourse && sudo mv concourse /usr/local/bin # Install Postgres brew install postgres # Init the db initdb /usr/local/var/postgres # Optional: launch Postgres automatically at login mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/postgresql/9.5.4_1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist # Start the PostgreSQL server manually pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start # Setup the necessary users, roles and dbs psql -h localhost -U postgres CREATE ROLE concourse superuser; CREATE DATABASE atc; CREATE DATABASE concourse; \q # Generate the necessary keys for Concourse Do this in an empty folder somewhere, you'll need to launch Concourse from this location. The commands are copied from https://concourse.ci/binaries.html ssh-keygen -t rsa -f host_key -N '' && ssh-keygen -t rsa -f worker_key -N '' && ssh-keygen -t rsa -f session_signing_key -N '' cp worker_key.pub authorized_worker_keys # Start the web overview concourse web \ --basic-auth-username concourse \ --basic-auth-password mypass \ --session-signing-key session_signing_key \ --tsa-host-key host_key \ --tsa-authorized-keys authorized_worker_keys \ --external-url http://my-ci.example.com -
kevin-smets revised this gist
Sep 29, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,3 +8,4 @@ Install Postgres brew cask install postgres Add `/Applications/Postgres.app/Contents/Versions/latest/bin` to your $PATH -
kevin-smets revised this gist
Sep 29, 2016 . No changes.There are no files selected for viewing
-
kevin-smets created this gist
Sep 29, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ Prerequisites: Homebrew Install Concourse curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/concourse_darwin_amd64 && chmod +x concourse && sudo mv concourse /usr/local/bin Install Postgres brew cask install postgres