mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 13:57:39 -02:30
Merge pull request #104 from shanemcd/sdist-builder-image
Build sdist inside of a container
This commit is contained in:
19
INSTALL.md
19
INSTALL.md
@@ -8,7 +8,6 @@ This document provides a guide for installing AWX.
|
|||||||
- [Clone the repo](#clone-the-repo)
|
- [Clone the repo](#clone-the-repo)
|
||||||
- [AWX branding](#awx-branding)
|
- [AWX branding](#awx-branding)
|
||||||
- [Prerequisites](#prerequisites)
|
- [Prerequisites](#prerequisites)
|
||||||
- [Installing gettext](#installing-gettext)
|
|
||||||
- [AWX Tunables](#awx-tunables)
|
- [AWX Tunables](#awx-tunables)
|
||||||
- [Choose a deployment platform](#choose-a-deployment-platform)
|
- [Choose a deployment platform](#choose-a-deployment-platform)
|
||||||
- [OpenShift](#openshift)
|
- [OpenShift](#openshift)
|
||||||
@@ -49,29 +48,11 @@ To install the assets, clone the awx-logos repo into the root of your local AWX
|
|||||||
Before you can run a deployment, you'll need the following installed in your local environment:
|
Before you can run a deployment, you'll need the following installed in your local environment:
|
||||||
|
|
||||||
- [Ansible](http://docs.ansible.com/ansible/latest/intro_installation.html)
|
- [Ansible](http://docs.ansible.com/ansible/latest/intro_installation.html)
|
||||||
- gettext package for your platform (See [Installing gettext](#installing-gettext))
|
|
||||||
- [Docker](https://docs.docker.com/engine/installation/)
|
- [Docker](https://docs.docker.com/engine/installation/)
|
||||||
- [docker-py](https://github.com/docker/docker-py) Python module
|
- [docker-py](https://github.com/docker/docker-py) Python module
|
||||||
- [Node 6.x LTS version](https://nodejs.org/en/download/)
|
|
||||||
- [NPM 3.x LTS](https://docs.npmjs.com/)
|
|
||||||
- [GNU Make](https://www.gnu.org/software/make/)
|
- [GNU Make](https://www.gnu.org/software/make/)
|
||||||
- [Git](https://git-scm.com/)
|
- [Git](https://git-scm.com/)
|
||||||
|
|
||||||
#### Installing gettext
|
|
||||||
|
|
||||||
On Fedora / CentOS / RHEL:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ yum install gettext
|
|
||||||
```
|
|
||||||
|
|
||||||
On macOS:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ brew install gettext
|
|
||||||
$ brew link gettext --force
|
|
||||||
```
|
|
||||||
|
|
||||||
### AWX Tunables
|
### AWX Tunables
|
||||||
|
|
||||||
**TODO** add tunable bits
|
**TODO** add tunable bits
|
||||||
|
|||||||
20
installer/image_build/files/Dockerfile.sdist
Normal file
20
installer/image_build/files/Dockerfile.sdist
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
FROM centos:7
|
||||||
|
|
||||||
|
RUN yum install -y epel-release
|
||||||
|
|
||||||
|
RUN yum install -y bzip2 \
|
||||||
|
gcc-c++ \
|
||||||
|
gettext \
|
||||||
|
git \
|
||||||
|
make \
|
||||||
|
python \
|
||||||
|
python-pip
|
||||||
|
|
||||||
|
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
|
||||||
|
RUN yum install -y nodejs
|
||||||
|
RUN npm set progress=false
|
||||||
|
|
||||||
|
WORKDIR "/awx"
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/bash", "-c"]
|
||||||
|
CMD ["make sdist"]
|
||||||
@@ -47,12 +47,22 @@
|
|||||||
when: not sdist.stat.exists
|
when: not sdist.stat.exists
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Build sdist builder image
|
||||||
|
docker_image:
|
||||||
|
path: "image_build/files"
|
||||||
|
dockerfile: Dockerfile.sdist
|
||||||
|
name: awx_sdist_builder
|
||||||
|
tag: "{{ awx_version }}"
|
||||||
|
force: true
|
||||||
|
|
||||||
- name: Build AWX distribution
|
- name: Build AWX distribution
|
||||||
shell: make sdist
|
docker_container:
|
||||||
args:
|
image: "awx_sdist_builder:{{ awx_version }}"
|
||||||
chdir: ..
|
name: awx_sdist_builder
|
||||||
creates: "./dist/{{ awx_sdist_file }}"
|
state: started
|
||||||
delegate_to: localhost
|
detach: false
|
||||||
|
volumes:
|
||||||
|
- ../:/awx
|
||||||
|
|
||||||
- name: Set docker build base path
|
- name: Set docker build base path
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user