docker-compose -f nexus.docker-compose.yml up
- username: admin
- password:
docker-compose exec nexus cat /nexus-data/admin.password
git clone https://github.com/ckec/infra.git
cd infra/
cp traefik/nexus.traefik.yml.example traefik/traefik.yml
- up
docker-compose -f nexus.prod.docker-compose.yml up -d
- down
docker-compose -f nexus.prod.docker-compose.yml down
- create nexus python-proxy with url(https://pypi.org)
- create nexus python-hosted
- create nexus python
- install twine:
pip3 install twine
- upload your lib:
twine upload --repository-url=http://localhost:8081/repository/python-hosted/name_lib.tar.gz
- create nexus npm-proxy with url(https://registry.npmjs.org)
- create nexus npm-hosted
- create nexus npm -
npm config set registry http://localhost:1000/repository/npm/
-npm login --registry=http://localhost:1000/repository/npm/
-npm publish {{packageName}}
- up
docker-compose -f jenkins.docker-compose.yml up -d
- Admin password:
docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
- down
docker-compose -f jenkins.docker-compose.yml down
git clone https://github.com/ckec/infra.git
cd infra/
cp traefik/jenkins.traefik.yml.example traefik/traefik.yml
- Change domain name in traefik/traefik.yml with your domain
- up
docker-compose -f jenkins.prod.docker-compose.yml up -d
- down
docker-compose -f jenkins.prod.docker-compose.yml down
docker-compose -f sonar.docker-compose.yml up
- username: admin
- password: admin
git clone https://github.com/ckec/infra.git
cd infra/
cp traefik/sonar.traefik.yml.example traefik/traefik.yml
- Change domain name in traefik/traefik.yml with your domain
- up
docker-compose -f sonar.prod.docker-compose.yml up -d
- down
docker-compose -f sonar.prod.docker-compose.yml down
- if sonar not working try with
sysctl -w vm.max_map_count=262144
- Install python3 in Centos server
yum install -y python3
- Rename
hosts.example
tohosts
- Replace
0.0.0.0
with your servers ip - Run ansible image docker and install playbooks
docker run -it --rm -v "$(pwd)/ansible":/ansible -v $HOME/.ssh/:/root/.ssh/ -w /ansible ckechad/ansible sh install_server.sh
- up
docker-compose -f registry.docker-compose.yml up -d
- down
docker-compose -f registry.docker-compose.yml down
- build image
docker build -f images/node.Dockerfile . -t ckechad/node:lts-stretch-slim
- push image
docker push ckechad/node:lts-stretch-slim
- build image
docker build -f images/python.Dockerfile . -t ckechad/python:3.9.4-slim
- push image
docker push ckechad/python:3.9.4-slim
- build image
docker build -f images/ansible.Dockerfile . -t ckechad/ansible
- push image
docker push ckechad/ansible