Kia Lam
15c699de7c
Update dockerfile to build using node v10.15.0.
2019-05-29 13:00:06 -04:00
Shane McDonald
2f77c67a62
Changes to enable tests in k8s
2019-05-28 13:22:15 -04:00
softwarefactory-project-zuul[bot]
18c69fa391
Merge pull request #3870 from shanemcd/gimme-root
...
Ensure that a root user is always present in development environment
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-05-10 14:57:58 +00:00
Shane McDonald
7d8a910be7
Improve dev environment init process
...
This ensures that /etc/passwd is always written, regardless of how the container starts.
2019-05-10 10:14:51 -04:00
Shane McDonald
015234287c
Ensure that a root user is always present in development environment
...
@AlanCoding was seeing errors in the development container when trying to run some commands as root. This fixes that.
2019-05-10 09:16:28 -04:00
AlanCoding
677a8b34ba
Fix bug in dev supervisor reparenting processes
2019-05-10 07:46:53 -04:00
Ryan Petrello
adfdfcdd0a
use make targets for dev supervisor commands
2019-05-09 13:45:49 -04:00
Shane McDonald
0be8fe521a
Refactor Dockerfiles
...
This commit does a few things:
- Add the `--squash` option to the `awx-devel-build` make target. This reduces the resulting image size from 2.12 GB to 1.37 GB. I think we can get this down even more by inspecting the image contents.
- Reorganize commands so that the cache expires less often. Before this commit, any changes to the Makefile would essentially cause the entire image to rebuild.
- Break yum dependencies up into multiple lines. This makes it easier to see what changes in a diff.
- Use `n` to install our required version of node (rather `curl node | bash`). I’ve found this to be easier to maintain / more portable when working with other Dockerfiles.
- General organizational changes to make things easier to parse visually.
2019-05-08 20:36:41 -04:00
Ryan Petrello
766a5c0c3f
remove honcho in the dev environment (just use foregrounded supervisor)
...
using supervisor gives us the ability to restart entire processes on
code change (like the dispatcher and callback receiver)
2019-05-08 14:44:07 -04:00
Bill Nottingham
0d18d46ccc
Sync docker-compose dockerfile with image build dockerfile.
...
It was installing an IUS repo, rabbitmq-server, and other unneeded things.
2019-04-18 16:50:38 -04:00
Ryan Petrello
17a803f49c
remove the old callback plugin import paths and callback-specific tests
2019-04-12 16:11:23 -04:00
Matthew Jones
fd3a423b07
The python 3.6 package seems to already make this symlink
2019-04-04 18:35:56 -04:00
Jake McDermott
3dee9f0512
add plugin for cyberark aim
2019-04-02 11:23:20 -04:00
Ryan Petrello
2824616ba6
add support for CyberArk Conjur (API v5)
2019-04-02 11:21:44 -04:00
Ryan Petrello
7a43f00a5d
add support for HashiCorp signed SSH certificates
2019-04-02 11:20:29 -04:00
Ryan Petrello
4ed5bca5e3
add credential plugin support for Azure Key Vault
2019-04-02 11:20:26 -04:00
Jake McDermott
c209955400
add credential plugin system and minimal working hashivault
2019-04-02 11:19:26 -04:00
Matthew Jones
91cbaa1096
Install supervisor into the dev environment
2019-03-21 15:58:24 -04:00
Bruno Thomsen
2e0edcbabd
docker: yum: use https for postgresql rpm download.
...
Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
2019-03-14 17:14:17 +01:00
Ryan Petrello
50d8eb30e1
fix a failing test in the unit-test target used to generate swagger docs
2019-03-12 14:59:24 -04:00
Matthew Jones
5cf7cc21c8
Revert "Fix chrome can not be started with unit-tests due to missing shared libraries"
...
This reverts commit d558ffd699551946715996011b85f80cfd24ec67.
2019-03-07 10:07:08 -05:00
Matthew Jones
499fd7b2f1
Revert "Fix chrome can not be started with unit-tests due to missing shared libraries"
...
This reverts commit 3e5f328b52430e0c82007717f39ab307084e5288.
2019-03-07 10:06:30 -05:00
Jim Ladd
b7b0bdaeca
Ansible 2.8 deprecates use of -U
2019-02-25 00:42:19 -08:00
Ryan Petrello
6f43875e80
record profile data in /var/log/tower, not /var/lib/awx
2019-02-15 14:34:55 -05:00
Hideki Saito
3e5f328b52
Fix chrome can not be started with unit-tests due to missing shared libraries
...
- Added installation packages conforming to the unit-tests/Dockerfile
Signed-off-by: Hideki Saito <saito@fgrep.org>
2019-01-31 13:02:23 +09:00
Hideki Saito
d558ffd699
Fix chrome can not be started with unit-tests due to missing shared libraries
...
- Modify Dockerfile to install necesarry shared libraries for chrome
Signed-off-by: Hideki Saito <saito@fgrep.org>
2019-01-31 09:54:55 +09:00
Jake McDermott
73f617d811
Install dependencies for Chromium in unit test image
2019-01-28 15:57:17 -05:00
Ryan Petrello
c6482137d1
parametrize PYTHON for Ubuntu py35 support
2019-01-15 14:09:05 -05:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
Ryan Petrello
f132ce9b64
switch image builds to py3
2019-01-15 13:25:13 -05:00
AlanCoding
77d2364022
Make docker environment interoperable with supervisorctl commands
2019-01-10 13:41:15 -05:00
Shane McDonald
a361b5da6e
Fix permissions when running dev container as non-root user
...
I wanted to pass `—user` to `docker-compose` up, but that option doesnt exist. To get around this, I had to record the uid on the host (CURRENT_UID), interpolate the variable in tools/docker-compose.yml, and detect that inside the container. I then piggy-backed on the /etc/passwd hack we use for scenarios with unpredictable uids.
2018-10-24 10:30:04 -04:00
Shane McDonald
7df63830ed
Remove reference to file that doesnt exist anymore
2018-10-24 10:30:03 -04:00
Matthew Jones
119b9475ea
Force openshift user behavior for uids over 2500
2018-10-16 11:30:04 -04:00
softwarefactory-project-zuul[bot]
0a964b2bf6
Merge pull request #2266 from ansible/celery-tastes-bad
...
replace the celery-based task queue with a kombu-based implementation
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-10-12 18:40:54 +00:00
Ryan Petrello
ac80bc874a
more shippable -> zuul cleanup
2018-10-12 11:50:29 -04:00
Ryan Petrello
ff1e8cc356
replace celery task decorators with a kombu-based publisher
...
this commit implements the bulk of `awx-manage run_dispatcher`, a new
command that binds to RabbitMQ via kombu and balances messages across
a pool of workers that are similar to celeryd workers in spirit.
Specifically, this includes:
- a new decorator, `awx.main.dispatch.task`, which can be used to
decorate functions or classes so that they can be designated as
"Tasks"
- support for fanout/broadcast tasks (at this point in time, only
`conf.Setting` memcached flushes use this functionality)
- support for job reaping
- support for success/failure hooks for job runs (i.e.,
`handle_work_success` and `handle_work_error`)
- support for auto scaling worker pool that scale processes up and down
on demand
- minimal support for RPC, such as status checks and pool recycle/reload
2018-10-11 10:53:30 -04:00
Ryan Petrello
f87a09c46a
build swagger docs as part of CI
2018-10-10 10:27:54 -04:00
Shane McDonald
7a5cfd05a3
Run tests in Docker as non-root user
2018-10-09 15:16:01 -04:00
Ryan Petrello
ee11341430
more make clean tinkering
2018-10-05 13:40:08 -04:00
Matthew Jones
56263a5fea
Force ui cleanup in the test environment
...
Also allow using the system make
2018-10-05 13:40:07 -04:00
Matthew Jones
3a8bacb8ef
Add an initial check and gate job configuration for zuul
...
Updates for running ui tests and linters
2018-10-05 13:39:59 -04:00
Shane McDonald
1371e394de
Update Node version in dev container image
2018-09-18 12:37:20 -04:00
Ryan Petrello
6f5259d017
remove the network UI
2018-07-30 11:03:53 -04:00
adamscmRH
ef29dab013
update logging readme
2018-07-19 11:41:39 -04:00
Guoqiang Zhang
530860c386
Force the python IO encoding to be utf_8 when using honcho
2018-06-22 09:35:28 -04:00
Ryan Petrello
3abdf66794
run network ui tests in shippable and Jenkins
2018-05-24 09:07:53 -04:00
Ben Thomasson
89cabf7ca0
Fixes timeout when exporting YAML from network UI
...
Exporting YAML on dev envs with honcho and in production environments
would timeout. This was due to daphne handling the export request
in dev but not in production. This fixes network_ui to use uwsgi instead
of daphne to handle the request.
2018-05-02 10:31:36 -04:00
Wayne Witzel III
7151071779
Add awx-link make target
2018-04-25 11:55:57 -04:00
AlanCoding
4036f64cc4
update the dev supervisor file to match recent change
2018-04-20 14:53:21 -04:00