Commit Graph

50 Commits

Author SHA1 Message Date
Taylor Silva eb5f16caf5 nit: run go fmt and convert vars to camel-case
Signed-off-by: Taylor Silva <dev@taydev.net>
2024-02-25 15:05:49 -05:00
Ramiro Balado 830961c394 Make subnet smaller
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
2023-09-24 23:47:07 +02:00
Ramiro Balado 2255bbd5a3 Enable ipv6 in docker-compose
Signed-off-by: Ramiro Balado <baladoramiro+github@gmail.com>
2023-09-24 23:47:07 +02:00
Bohan Chen 7eb35f23bf add feature flag for resource causality
since the causality query is so expensive, it makes sense to give
cluster admins the ability to disable the endpoints and page view.

this is the first time we introduced the idea of feature flags to the
frontend. my solution is to include the current state of the feature
flags in the `/api/v1/info` endpoint, this can then be parsed by the
frontend and stored in `session` making it available to any elm code
that might require it.

if resource causality is disabled (default), the `view all` buttons in
the expended resource version will not show up and trying to navigate to
the causality pages directly via url will result in a standard 404 not
found page.

another change is the stauts code for the causality endpoint will be 403
Forbidden if causality is disabled, and 422 UnprocessableEntity if the
graph is too large.

Signed-off-by: Bohan Chen <bochen@pivotal.io>
2021-07-02 10:36:11 -04:00
Taylor Silva 868abbe914 Revert "worker: make containerd the default runtime"
Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bohan Chen <bochen@pivotal.io>
2021-06-30 14:08:15 -04:00
Muntasir Chowdhury c26ca78df8 worker: set containerd as the default runtime
Setting the default value of --runtime to containerd. No longer need to set the
value explicitly in the docker-compose.yml.

concourse/concourse#7106

Signed-off-by: Muntasir Chowdhury <mchowdhury@pivotal.io>
2021-06-01 16:17:19 -04:00
Clara Fu 96f8865d27 enable caching in docker-compose.yml
so that we're testing against experimental features

Signed-off-by: Clara Fu <fclara@vmware.com>
2021-05-20 14:14:57 -04:00
Aidan Oldershaw ff447c6ef1 default to containerd in docker-compose
since we're going to default to using containerd in 7.1.0, we should
probably be developing against it!

this commit uses the containerd runtime by default, and replaces the
containerd override with a guardian one

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
2021-02-24 11:36:46 -05:00
Alex Suraci d76b5923eb integration: re-add docker-compose.yml
overloading the outer docker-compose.yml for both dev and test started
to feel more confusing than just keeping them separate.

namely, it's impossible to un-set 'build:' in an override file, so I
split that out into a docker-compose.override.yml file, symlinked under
hack/overrides/ to keep ./hack/dc working, but then having the tests
*not* use it, even though they use the docker-compose.yml right next to
it, and even though it's normally respected by 'docker-compose'
commands.

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2021-01-28 17:08:18 -05:00
Alex Suraci 36db6a583d generalize docker-compose.yml a bit
* rather than generating keys in the 'Dockerfile', which is slow and
  makes the image behave differently from the dev or shipped images,
  just check them in. (obviously do not use these - or any of this
  workflow - in production.)
* same for vault certs, to make vault testing easier.
* move port mappings and '.' mapping to hack/overrides/dev.yml, which is
  now symlinked to docker-compose.override.yml to maintain the previous
  'docker-compose up' dev workflow.

this will make it easier to re-use docker-compose.yml for dev images and
for testing against final images. the aim here is to avoid ha

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2021-01-28 17:08:18 -05:00
Mathieu Ouellet b256acbcce atc: behaviour: add feature flag for setting instanced pipelines
When the feature is disabled, the flag is only hidden in the 'fly set-pipeline'
command, but the api will error if a instance-vars was specified.

Also, the set_pipeline step will error on validation if instance_vars are specified.

concourse/concourse#5808

Signed-off-by: Mathieu Ouellet <mathieu.ouellet@energumen.io>
2020-09-26 09:50:02 -04:00
Andy Paine c2bfbc9e4c Enable garden DNS proxy in docker-compose
The `CONCOURSE_GARDEN_DNS_PROXY_ENABLE` flag was taken out of the dev
image in db8c43e565
In order for local docker-compose DNS to work with latest concourse/dev
image we need to renable it. Since Guardian is still the default in
docker-compose.yml it makes sense to use it there and unset it in the
containerd override.

Signed-off-by: Andy Paine <andy.paine@engineerbetter.com>
2020-08-20 23:34:26 +01:00
Aidan Oldershaw d124dd7669 atc: behaviour: feature flag across step
This way, the across step can only be added to a pipeline if the
`--enable-across-step` flag is provided. The flag does not prevent
across steps from running if the pipeline is already set with an across
step.

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
2020-08-16 09:53:45 -04:00
Taylor Silva 3dd371d131 atc/api: remove feature flag for archive pipelines
The RFC for archiving pipelines has been merged, therefore we can remove
the feature flag.

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bohan Chen <bochen@pivotal.io>
2020-07-29 09:48:46 -04:00
Alex Suraci ef73d0830c Revert "docker-compose: break worker/web dependency"
this breaks downgrade tests; the worker can't unregister in time, since
the web node just goes away immediately, and workers give up when all
web nodes are unreachable, assuming the cluster is being destroyed.

as a result, the check container ends up sticking around on a stalled
worker, and the check eventually times out. a better solution might be
to have checking not attempt to use a container that's on a stalled
worker, but let's not block the pipeline on that in the meantime.

This reverts commit 3a5690d3bb.
2020-06-23 13:32:19 -04:00
Alex Suraci 3a5690d3bb docker-compose: break worker/web dependency
this results in constantly recreating/restarting the worker when it's
really not necessary for web config changes

Signed-off-by: Alex Suraci <asuraci@pivotal.io>
2020-06-19 10:49:51 -04:00
Rui Yang 4f1072bf87
Merge pull request #5453 from concourse/bug-5391-postgres-legacy 2020-04-20 14:23:52 -04:00
Rui Yang 68027c4152 allow postgres image tag to be configurable by env var
docker-compose still works as usual and pulling latest postgres image.
if providing "POSTGRES_TAG=9.5" with docker-compose, it will pull
postgres 9.5 instead

Signed-off-by: Rui Yang <ryang@pivotal.io>
2020-04-17 22:48:42 -04:00
Aidan Oldershaw fbe6e95c1b atc: behaviour: add flag to enable archive pipeline
concourse/concourse#5315 - as per
https://github.com/concourse/concourse/pull/5346#issuecomment-605023872,
the ability to archive pipelines is now behind an api flag
`enable-archive-pipeline`.

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
Co-authored-by: James Thomson <jthomson@pivotal.io>
2020-04-17 17:50:52 -04:00
Josh Winters 72ccab9bac cmd: generate client secret defaults in web cmd
Signed-off-by: Josh Winters <jwinters@pivotal.io>
2020-04-09 12:32:23 -04:00
Josh Winters 3f9ded9f4f atc: add default flag values for client names
Signed-off-by: Josh Winters <jwinters@pivotal.io>
2020-04-06 12:47:12 -04:00
Josh Winters 6f45980308 docker: add a default client id and client secret
Signed-off-by: Josh Winters <jwinters@pivotal.io>
2020-04-06 12:47:12 -04:00
Ciro S. Costa f97e085e80 docker-compose: bump db's shm_size
it seems like postgres by default might need to resize the amount of
shared memory that it uses for performing parallel work.

i've hit this when making 100's of concurrent requests to certain api
endpoints:

	 could not resize shared memory segment "/PostgreSQL.<..>"
	 to $N bytes: No space left on device

after applying the change (which makes docker go from 64MB to 1GB), , I
can then execute those requests w/ no problems.

Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
2020-03-23 14:30:20 -04:00
Jamie Klassen be05b9cd75 web: add cluster name to docker-compose.yml
Signed-off-by: Jamie Klassen <cklassen@pivotal.io>
2019-04-23 13:29:10 -04:00
Jamie Klassen cb9f22e27b web, atc: add instance name to dashboard
concourse/concourse#2597

Signed-off-by: Jamie Klassen <cklassen@pivotal.io>
2019-04-23 13:28:34 -04:00
Alex Suraci bb46552b50 ci: remove dev-test Dockerfile
this is no longer necessary now that keys are explicitly generated

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2019-03-14 12:25:56 -04:00
Alex Suraci 13b841a817 ci: rework how we use Docker Compose in CI
* explicitly generate keys; this allows them to be shared between
  upgrades and downgrades
* don't use the dev Dockerfile and don't perform any building
* use an override file to swap out the image for upgrade/downgrade;
  don't use Quickstart
* stop using ephemeral workers, since this caused the workers to
  disappear under load
* set `stop_signal: SIGUSR2` so that workers retire during
  upgrade/downgrade
* pass the latest final concourse image as an input to upgrade/downgrade

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2019-03-14 12:03:53 -04:00
Alex Suraci 478f0fb2fe consistency between docker-compose files
Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2019-01-31 22:38:15 +00:00
Alex Suraci 776c99f1b0 ci: refactor upgrade test
* extract tasks to their own task files
* simplify task dependencies so this can be run more easily with `fly
  execute`
* download fly from the ATC instead of building old and new binaries
* rename 'uber' to upgrade-downgrade
* don't do yarn build, just use the dev-test Dockerfile so we can use
  the prebuilt assets
* load dev and postgres images as inputs rather than fetching during
  `docker-compose up`

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2019-01-31 22:38:15 +00:00
Ciro S. Costa bfa74148f0 ci : don't wait twice for fly login to exit
we were setting a timeout and interval in the eventually
but the `Wait()` uses the default 1sec timeout

Signed-off-by: Topher Bullock <cbullock@pivotal.io>
2018-11-21 16:43:32 -05:00
Ciro S. Costa c3b26a0cbd bin/worker: adds health checker ifrit server
Adds a server process to the worker command so that
we can have an endpoint to be reached to healthchecking
the worker.

Internally, such endpoint makes a request to both
`garden` and `baggageclaim`, ensuring that both of
them are up.

It also Includes k8s deployment script for testing

concourse/concourse#2753

Signed-off-by: Topher Bullock <cbullock@pivotal.io>
2018-11-15 10:34:06 -05:00
Alex Suraci df55e46d61 dev: expose garden/baggageclaim for debuggability 2018-10-31 09:33:18 -04:00
Alex Suraci 75e3bdf420 Revert "Revert "unset unreasonably low heartbeat interval""
didn't actually mean to push this revert, woops!

This reverts commit 7e09843ce1.
2018-10-24 11:19:23 -04:00
Alex Suraci 7e09843ce1 Revert "unset unreasonably low heartbeat interval"
This reverts commit a1db94aa04.
2018-10-24 10:41:19 -04:00
Alex Suraci a1db94aa04 unset unreasonably low heartbeat interval
this resulted in CI failures as the worker would up and remove itself if
it was under too much load to heartbeat every 10s
2018-10-24 10:18:38 -04:00
Alex Suraci ea1bc65dd2 enable debug logs for dev docker-compose 2018-10-24 10:11:54 -04:00
Alex Suraci a186e776be run watsjs/testflight against prebuilt Concourse 2018-10-01 17:10:35 -04:00
Alex Suraci b524736ed9 Revert "pass a prebuilt image along to testflight/watsjs"
eh, might be better to just build the dev image and extend it to also do
the yarny bits, and then pass *that* along so we don't need to run the
make task

This reverts commit 8fb4141f37.
2018-09-29 15:30:19 -04:00
Alex Suraci 8fb4141f37 pass a prebuilt image along to testflight/watsjs
(experimental; using kaniko and unsupported registry-image pushing
stuff)
2018-09-29 14:32:43 -04:00
Jamie Klassen 080c3ffda6 adjust tests/deployment to run better against docker-compose
Signed-off-by: Jamie Klassen <cklassen@pivotal.io>
2018-09-27 15:54:20 -04:00
Alex Suraci 7f6b141464 use overlay driver for dev docker-compose 2018-09-27 14:18:15 -04:00
Alex Suraci ab818bda99 add beginnings of new pipeline, + testflight task
for now i've extended the unit image with dockery stuff, but we should
probably rename the image now that it's not just for unit tests
2018-09-27 10:52:14 -04:00
Alex Suraci 768cb1e002 flesh out CONTRIBUTING.md
also moved web/package.json and web/Makefile to the top, which is a bit
easier to grok.

and cleared out the dev db password so it's a bit easier to connect to.
2018-09-25 14:18:48 -04:00
Alex Suraci 51bcdd122a split dev Dockerfile into two Dockerfiles
do as much work ahead-of-time in CI-built 'concourse/dev' image to
shorten feedback loop
2018-09-24 17:49:27 -04:00
Alex Suraci 82232c8f9b expose dev postgres on port 6543 2018-09-24 17:27:50 -04:00
Alex Suraci 7e14d97b78 lessen docker-compose version requirement 2018-09-21 18:58:02 -04:00
Alex Suraci 62cbd21119 mount over /src to speed up web feedback loop
this allows packr'd files to pick up changes immediately without having
to restart + rebuild. neat!
2018-09-21 18:57:22 -04:00
Alex Suraci b5619ac965 more dev changes
* fetch mirror resource via multi-stage build; shortens local feedback
  loop when working on mirror resource
* create keys in Dockerfile; now you can just 'docker-compose up' and
  everything should "just work"!
* only fetch mirror resource; we should be able to omit the rest for
  testflight. we can maybe add the rest later or figure out how to
  support them when kicking the tires.
2018-09-21 16:46:59 -04:00
Alex Suraci fb668bed61 dev: build Concourse and fetch assets during build
this is a bit slower to build as there's no build cache to take
advantage of, but the dependencies are at least fetched ahead-of-time
2018-09-21 10:53:10 -04:00
Alex Suraci 8eb46fd9e7 add initial docker-compose based dev setup
note: this is not quite working yet since it relies on (as of yet
uncommitted) changes to the 'concourse' binary to run with the 'gdn'
executable, and support loading resources from a directory

advantages:

* sane process monitoring
* low risk of polluting dev workstation with stuff from running the
  worker
* builds everything locally, rather than running concourse-rc, so it
  supports iterating on the worker stuff even while developing on OS X
* fewer dev dependencies; uses off-the-shelf postgres image rather than
  requiring postgres to be installed

disadvantages:

* not quite as fast as just running 'concourse web' if you're working on
  something like the web UI where fast feedback loops are desired
* not sure if cross-compiling 'concourse' is a good strategy, going to
  soon look into doing all that in the 'Dockerfile'
2018-09-21 09:45:41 -04:00