Age | Commit message (Collapse) | Author | Files | Lines |
|
Project "CIA" scope is to provide smaller and multi architecture docker
images.
This proposition aims to do that for sdnc-ansible-server.
The current size of this proposal is 139mb compared to the 618Mb image
proposed before (and before actual ansible installation).
Principles used are the following:
1. a "basic" `docker build .` should provide a working image;
2. use the smallest (and multi arch) base image possibe;
3. install necessary stuff only;
4. leverage python best practices for installation;
5. remove installation stuff occuring at run level and move them to
build level.
* Dockerfile is now at the root part;
* ansible configuration file `ansible.cfg` is created and put in
`configuration` folder;
* ansible configuration file `ansible.cfg` is pushed during the
build part with a reproductible process;
* `python` files are on `ansible-server" folder so copying during build
works out of the box;
* yml files are put directly on `ansible-server/Playbooks` so copying
during build works out the box;
* Dockerfile base image is now alpine:3.8;
* `timeout` executable being now from busybox, change in the
command-line call has been made (`--signal` is now `-s` and `-t` is
set before setting the timeout value).
* Only install python and python-pip as alpine package and remove build
dependencies package after use.
* put all python requirements in `requirements.txt` package and launch
pip installation command with this file.
* call directly python main script (`RestServer.py`) as entrypoint and
do the python installation stuff at build time.
- [x] change pom.xml so building parts works
- [ ] consider changing destination folder (`/opt/ansible-server/`) to
the ancient one (`/opt/onap/ccsdk/`) if this is problematic
Change-Id: I6295d7c2d1ed631e1842350581234686d704c1bf
Issue-ID: INT-816
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Former-commit-id: 4fe3b43a0d30a15ceed58c695d2a72c5382fded6
|
|
Roll to initial Dublin snapshot
Change-Id: Id36b1e41ae75a7c282a5db85b30abe3a7688aeb9
Issue-ID: SDNC-480
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Fix CCSDK docker version
Update CCSDK docker versions used to build SDNC docker containers.
Change-Id: I9497c788cc48b401f24aeb9018060c6c0d5b4a0b
Issue-ID: SDNC-486
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: c261e3f719abcbea0762162dc9244f951296c6a1
|
|
Ansible server path to startup script was wrong, preventing
ansible server docker from starting.
Change-Id: Iabfa884dffc59ddd791430b45901af4072b17a46
Issue-ID: SDNC-455
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 93edb0fec0b36fbcd15d6efb1ddb55a1b37cbbdf
|
|
Update SDNC to use CCSDK ansible server as base for its instance of
ansible server
Change-Id: Idaf1c83cf50ee526f17b97a3b2e376f6ad3a696b
Issue-ID: CCSDK-442
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 01809240263c1d5ddad9e1e990a9610bdceaa83a
|
|
Re-add DNS config accidentally removed from sdnc container
in docker-compose.yml and fix typos in ansible start script
Change-Id: I808d559f68e7348acb5bbddfc089b96168f0f7bf
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: f2929453c961b3d6e9a5320b06cd86146a4c636f
|
|
add-apt-repository is failing in Jenkins, so move it to ansible server
startup script instead.
Change-Id: Iae058003678748c9a4bed9b5e279ebcce4c4695a
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 352342232f7578dc31597291947457f800e6619e
|
|
When run from command line, add-apt-repository waits for user prompt
to continue. Redirecting stdin to /dev/null allows installation to
proceed without prompt.
Change-Id: Ia646e775a3fcfba6100ffea05c48d6d6bc2f498d
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 52a359f2a7710eb2a4373b277485c2c7f34af69a
|
|
Pip install seems to fail in Dockerfile. Instead, move pip installs to
a startup script so that they can be done on initial container startup.
Change-Id: I3125307d5f9bfc980d8f9ed0bba108a5536548fd
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id: 3c48ffbeda720569fbfb8fac3e5db1cd0551474b
|
|
Add CM Ansible Server Docker Container
Change-Id: I673cfd6dce5d2e96954fc6700a12a849f46dae5a
Issue-ID: SDNC-288
Signed-off-by: Ruchira Agarwal <ra1926@att.com>
Former-commit-id: c051fe64ed0ddd6aeb26f8b2af9adfe7011a4dc0
|