mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Fix OpenShift container image builds
This commit is contained in:
parent
6cd8fbdf6d
commit
f4aacebb86
2
Makefile
2
Makefile
@ -606,7 +606,7 @@ VERSION:
|
||||
|
||||
production-openshift-image: sdist
|
||||
cat installer/openshift/Dockerfile | sed "s/{{ version }}/$(VERSION_TARGET)/g" | sed "s/{{ tar }}/$(SDIST_TAR_FILE)/g" > ./Dockerfile.production
|
||||
cat installer/openshift/Dockerfile.celery | sed "s/{{ version }}/$(VERSION_TARGET)/g" | sed "s/{{ tar }}/$(SDIST_TAR_FILE)/g" > ./Dockerfile.celery.production
|
||||
cp installer/openshift/Dockerfile.celery ./Dockerfile.celery.production
|
||||
docker build -t awx_web -f ./Dockerfile.production .
|
||||
docker build -t awx_task -f ./Dockerfile.celery.production .
|
||||
|
||||
|
||||
@ -32,10 +32,10 @@ RUN mkdir -p /var/log/tower
|
||||
RUN mkdir -p /etc/tower
|
||||
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
||||
RUN VENV_BASE=/var/lib/awx/venv make requirements_ansible && VENV_BASE=/var/lib/awx/venv make requirements_awx
|
||||
COPY dist/awx-3.2.0.3953.tar.gz /tmp/awx-3.2.0.3953.tar.gz
|
||||
RUN OFFICIAL=yes pip install /tmp/awx-3.2.0.3953.tar.gz
|
||||
COPY dist/awx-{{ version }}.tar.gz /tmp/awx-{{ version }}.tar.gz
|
||||
RUN OFFICIAL=yes pip install /tmp/awx-{{ version }}.tar.gz
|
||||
|
||||
RUN echo "3.2.0.3953" > /var/lib/awx/.tower_version
|
||||
RUN echo "{{ version }}" > /var/lib/awx/.tower_version
|
||||
ADD installer/openshift/nginx.conf /etc/nginx/nginx.conf
|
||||
ADD installer/openshift/supervisor.conf /supervisor.conf
|
||||
ADD installer/openshift/supervisor_task.conf /supervisor_task.conf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user