Commit Graph
52 Commits
Author SHA1 Message Date
Shane McDonald e453afa064 FOLLOW UP ON THIS: Fix fact_cache directory location
The part where we pass in the runner params to the processor phase is
legit. Need to investigate why the fact_cache directory is no longer nested
under job.id.
2021-03-03 18:52:55 -05:00
Shane McDonald cf96275f1b Pull awx -> receptor job code into its own class 2021-03-03 18:52:54 -05:00
Shane McDonald be8168b555 Surface errors when launching jobs through Receptor
This will raise errors such as:

exec: "ansible-runner": executable file not found in $PATH
2021-03-03 18:52:54 -05:00
Shane McDonald fd92ba0c0b Actually cancel things 2021-03-03 18:52:54 -05:00
Shane McDonald 0184a7c267 Create receptor mesh in cluster development environment 2021-03-03 18:52:54 -05:00
Shane McDonald 81f6d36a3a Set SDB_NOTIFY_HOST for all processes 2021-03-03 18:52:54 -05:00
Shane McDonald f1df4c54f8 Begin integrating receptor 2021-03-03 18:52:54 -05:00
Shane McDonald 12b8349e88 Show EE images that are managed by tower in UI 2021-03-03 18:52:54 -05:00
Shane McDonald 14a8e3da5e WIP: containerized inventory updates. Thanks ALAN!! 2021-03-03 18:52:54 -05:00
Shane McDonald 6ff1424e8c Fix tests after rebasing in inventory update refactor 2021-03-03 18:52:54 -05:00
Shane McDonald 642e6f792c Remove unnecessary conditional from image build task 2020-12-29 19:14:16 -05:00
Shane McDonald b857fb5074 Remove use_container_for_build from inventory 2020-12-29 19:14:05 -05:00
Shane McDonald 6f9862c72e Sweeping replace of old dev venv paths 2020-12-26 21:29:22 -05:00
Shane McDonald 1033c4d251 Explicitly run image_build and image_push on localhost 2020-12-26 13:16:42 -05:00
Shane McDonald ab6430e50d Dramatically simplify image_build role
This does a few things:

- Removes need for awx_sdist_builder image
- Reorders Dockerfile steps to optimize image cache between prod and dev builds
- Unifies VENV_BASE and COLLECTION_BASE in prod and dev builds
2020-12-26 13:16:42 -05:00
Shane McDonald 8ceb505977 Add standalone target for rendering official Dockerfile
With the next commit it will be possible to run:

```
$ make Dockerfile
$ docker build .
```
2020-12-26 13:16:40 -05:00
Shane McDonald 4219089166 Restore old behavior of ui-devel 2020-12-22 17:20:20 -05:00
Shane McDonald f951aa24bf More sane way of building the official AWX image 2020-12-22 14:27:47 -05:00
Shane McDonald 225c3d6a39 Speed up subsequent invocations of ui-devel / ui-release 2020-12-22 14:27:45 -05:00
Shane McDonald 106d90aeb3 Remove launch scripts from configmaps
The duplication of these scripts has been bothering me for a while. They dont
get enough usage to justify their existence.
2020-12-22 09:12:03 -05:00
Shane McDonald 8788c904c8 Revert: Force containers in k8s to run under root group
This reverts most of:
https://github.com/ansible/awx/commit/423df6618d1f5484ea428dcd32371e67bb4c49d4

Since https://github.com/sclorg/redis-container/pull/62 is now shipped downstream
2020-12-08 13:06:00 -05:00
Shane McDonald e85a32d463 Fix typo in deployment template 2020-12-08 13:00:14 -05:00
Shane McDonald 3597c34593 Rename .te filename to reflect selinux policy name
https://patchwork.kernel.org/patch/8784071/

While renaming the policy would have been a “cleaner” solution, this would create a scenario where our setup playbooks would need to check for the policy by it’s old name before installing the new one. Updating the filename to reflect the policy name is the least invasive and risky change.
2016-12-12 15:55:49 -05:00
Shane McDonald f0e7385f54 Remove socketio_service handler from defaults.py. Closes #4278.
A reference to socketio in awx/settings/production.py was removed in f399c90a69a1b846eedfbf94ee255c1cb5d4ef53. I’m guessing it also needs to be removed here.
2016-12-04 21:07:21 -05:00
Shane McDonald 7342210ca6 Remove awx/job_output in clean target 2016-11-23 08:55:55 -05:00
Shane McDonald 4330eb7907 Activate venv in flake8 target 2016-11-15 09:54:42 -05:00
Shane McDonald 30e5904ab3 Use tower_devel as base image for unit tests 2016-11-11 15:47:17 -05:00
Shane McDonald 5657671fb9 Add unit test artifacts to clean target 2016-11-11 14:39:23 -05:00
Shane McDonald 8c4872836e Fix pyc errors when running tests 2016-11-10 16:20:12 -05:00
Shane McDonald 6f39995060 Fix docker-compose error
Fixes this error:

```
ERROR: yaml.parser.ParserError: while parsing a block mapping
  in "./tools/docker-compose/unit-tests/docker-compose.yml", line 10, column 7
expected <block end>, but found '<scalar>'
  in "./tools/docker-compose/unit-tests/docker-compose.yml", line 11, column 40
```
2016-11-10 13:38:15 -05:00
Shane McDonald f0dad06032 .dockerignore 2016-11-10 13:12:29 -05:00
Shane McDonald cc359ecbad Default TEST_DIRS in docker-compose 2016-11-10 13:12:29 -05:00
Shane McDonald fdfce0bc73 Print flake8 results to stdout and output to file
I think?
2016-11-08 11:06:48 -05:00
Shane McDonald 793ce37a07 Get unit-test container working
node_modules was being overwritten by the bind-mount when the container started. This is kind of hacky, but it’s the only way to do this without changing everything.
2016-11-02 19:30:37 -04:00
Shane McDonald c99f240c89 Add node_modules bins to Makefile PATH 2016-11-02 14:30:07 -04:00
Shane McDonald d42ec44010 Use grunt variable in Makefile 2016-11-02 13:35:26 -04:00
Shane McDonald 4e81daafec Hack for downgrading npm when using overlay storage driver
https://github.com/npm/npm/issues/9863
2016-11-02 12:22:10 -04:00
Shane McDonald 021666482a Downgrade npm in unit-test image
https://github.com/npm/npm/issues/14042#issuecomment-249139529
2016-11-02 12:08:03 -04:00
Shane McDonald bbf185cd0b Add awx/public to clean target 2016-10-27 10:17:37 -04:00
Shane McDonald 57c599df41 Exclude test directory from setup bundle tarballs
Also using the rsync strategy in the tar-build target. This doesn’t leave behind the empty setup/test directory.
2016-10-13 10:08:03 -04:00
Shane McDonald c80a8a9c14 Exclude test directory from setup bundle tarballs
Also using the rsync strategy in the tar-build target. This doesn’t leave behind the empty setup/test directory.
2016-10-12 16:07:25 -04:00
Shane McDonald 16129b6e64 Add pycparser to SRC_ONLY_PKGS
Fixes stuff due to https://github.com/pyca/cryptography/issues/3187
2016-10-03 10:12:39 -04:00
Shane McDonald 15eaac049c Add pycparser to SRC_ONLY_PKGS
Fixes stuff due to https://github.com/pyca/cryptography/issues/3187
2016-10-03 09:37:06 -04:00
Shane McDonald 049d8a7bd6 Support GPG signing in the containerized RPM jobs.
- Added a script that allows for piping signing keys into the container’s stdin stream.
- Got sign.exp working
- I ended up getting mock to run as root, which means both RPM and DEB jobs both use —unsafe-perm now, so I added that back to the Makefile.
2016-09-22 14:19:47 -04:00
Shane McDonald e958a12dab Remove --unsafe-perm
This breaks RPM builds… Will specify in DEB jobs only.
2016-09-21 11:45:54 -04:00
Shane McDonald ba8290a94a Fix pip install in unit test container
The SWIG_FEATURES environment variable is to get pip install working with M2Crypto==0.22.3. It works without SWIG_FEATURES if we update to M2Crypto >= 0.23.0.

Also did some organization, add README.
2016-09-16 11:15:30 -04:00
Shane McDonald 05add1a751 Add --unsafe-perm to ui-deps-built
Node thinks we’re stupid. https://github.com/nodejs/node-gyp/issues/454
2016-09-13 15:35:35 -04:00
Shane McDonald 1bf0cf20be Merge branch 'containerized-debs' into devel 2016-09-12 10:40:43 -04:00
Shane McDonald 5c516b60b3 ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯  ¯\_(ツ)_/¯
2016-07-22 13:19:57 -04:00
Shane McDonald d3aadd4847 Removing console.logs 2016-07-11 13:13:27 -04:00
Shane McDonald 1df83e8853 Align logo in API browser
By default, bootstrap pads the “navbar-brand” element with 15px, and sets margin-left to -15px. Since we had removed all the padding, it meant that the logo was -15px to the left of the main page margin.
2016-06-13 14:08:39 -04:00
Shane McDonald 0dc2b7426f Fix failing apt-key step in Dockerfile
The docs at https://wiki.postgresql.org/wiki/Apt are different than what we were doing. I tried this approach and it seems to be working now.
2016-05-25 16:46:45 -04:00