GithubHelp home page GithubHelp logo

infra's Introduction

Infra

Technologies

Nexus

docker-compose -f nexus.docker-compose.yml up

  • username: admin
  • password: docker-compose exec nexus cat /nexus-data/admin.password

Nexus (Prod)

  • 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

Nexus Python

  • 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

Nexus-npm

  • 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}}

Jenkins

  • 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

Jenkins (Prod)

  • 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

Sonar

docker-compose -f sonar.docker-compose.yml up

  • username: admin
  • password: admin

Sonar (Prod)

  • 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

Ansible (Server installation) Centos/Debian

  • Install python3 in Centos server yum install -y python3
  • Rename hosts.example to hosts
  • 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

Docker Registry

  • up docker-compose -f registry.docker-compose.yml up -d
  • down docker-compose -f registry.docker-compose.yml down

Images Docker Hub

Node

  • build image docker build -f images/node.Dockerfile . -t ckechad/node:lts-stretch-slim
  • push image docker push ckechad/node:lts-stretch-slim

Python

  • 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

Ansible

  • build image docker build -f images/ansible.Dockerfile . -t ckechad/ansible
  • push image docker push ckechad/ansible

infra's People

Contributors

sorardev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.