Giter VIP home page Giter VIP logo

pgadmin4-ci's Introduction

VMware has ended active development of this project, this repository will no longer be updated.


## Concourse

Now that we've moved away from Circle, here's how we develop our pipeline:

cd concourse
vagrant up
cd ..

grab fly from http://192.168.100.4:8080 (concourse may take a few minutes to come up locally) and put the binary in /usr/local/bin or somewhere else on your PATH

Now we can finish setting up concourse:

fly -t lite login -c http://192.168.100.4:8080
fly -t lite set-team -n main --basic-auth-username=foo --basic-auth-password=bar

Now we can deploy a pipeline! Isn't this what we've always wanted?

echo -e "concourse_url: 'http://192.168.100.4:8080'\nconcourse_user: foo\nconcourse_pw: bar" > local-concourse-config.yml
fly -t lite set-pipeline -p pgadmin -c pipelines/pgadmin4.yml -l local-concourse-config.yml
fly -t lite unpause-pipeline -p pgadmin

The first time we run we also need to create a no-op pipeline for the concourse-pipeline resource to be happy:

touch scratch.yml
fly -t lite set-pipeline -p pgadmin-feature-branches -c scratch.yml --non-interactive
fly -t lite unpause-pipeline -p pgadmin-feature-branches

For this open source project, the pipelines should be publicly accessible.

fly -t lite expose-pipeline -p pgadmin
fly -t lite expose-pipeline -p pgadmin-feature-branches

Now go back to your concourse and kick off the manually-generate-feature-branch-pipeline job

If that succeeds, the pgadmin-feature-branches pipeline will now contain several jobs (as specified in pipelines/feature-branch-pipeline-jobs.yml.erb) for each branch.

You can find a job named [your feature branch of interest]-branch and trigger that. The corresponding jobs will then run automatically (triggered by new commits pushed to that branch).

Create a Docker Image

$ docker build -t pivotaldata/pgadmin:postgres-10 .

$ docker tag postgres-10 pivotaldata/pgadmin:postgres-10

$ docker push pivotaldata/pgadmin:postgres-10

In a single command:

export TAG=postgres-10 && docker build -t pivotaldata/pgadmin:$TAG docker/$TAG && docker push pivotaldata/pgadmin:$TAG

Look at the container while the test running

$ ./fly -t lite intercept -j pgadmin/Python-3.6-Postgres bash

The following sections may still come in handy as part of concourse setup or for pushing manually?

To push to CF

Push a branch from the pgadmin4 repo, which will trigger a git hook that updates this repository and it's submodules.

Then login to CF using the following command:

$ cf login -a https://api.run.pivotal.io
> USERNAME
> PASSWORD

Run the script that will push:

$ ./push_cf.sh

Push to CF didn't work

If the following message is displayed:

Not deploying because couldn't find the branch name in the git message

Check the last git message, it should look like this:

[branch-name-id] Run tests for.....

If it doesn't, the commit was not generated by the Git Hook in the pgadmin4 repo and will not be pushed to CF

pgadmin4-ci's People

Contributors

aemengo avatar joaopapereira avatar kahneraja avatar rlewis24 avatar tisvictress avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tirao gridl tjlee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.