Git Product home page Git Product logo

code-infra's Introduction

Continuous Delivery Infrastructure

You need docker and docker-compose to run this setup.

Jenkins runs at http://YOUR-DOCKER-HOST:8080/jenkins Artifactory runs at http://YOUR-DOCKER-HOST:8090/artifactory Registry run at http://http://YOUR-DOCKER-HOST:5000

The testing web server (written in Go) will be accessible at http://YOUR-DOCKER-HOST:8000 - when you compile it and run it.

There is a centos-slave Docker container, which you may need to build yourself if you decide to modify it.

The containers home directories (data directories) are in /opt/containers . The /opt/containers directory tree needs to be owned by uid 1000 and gid 50. They are setup to have this ownership. If you want to do something manually to these directories, you need to use sudo.

There is a GoWebServer directory which contains http.go file. You can run it and it will open a port 8000 and listen on it. This is the test project, which will be compiled by the students through jenkins.

setup

Fork this git repository for the go web server:

Create the data filesystems for the servers:

git clone https://github.com/praqma-training/code-infra
cd code-infra
cat > make_data.sh
echo "You should not be running any containers in /opt/containers when you run this script."
echo "Removing old directory structure from /opt/containers"
rm /opt/containers/* -fr
echo "Re-creating directory structure inside /opt/containers"
mkdir -p /opt/containers/jenkins_home
mkdir -p /opt/containers/artifactory/data
mkdir -p /opt/containers/artifactory/logs
mkdir -p /opt/containers/artifactory/backup
mkdir -p /opt/containers/registry
echo "Changing ownership of /opt/containers to 1000:50 recursively"
chown 1000:50 /opt/containers -R
echo "Done."

docker@code:~$ chmod u+x make_data.sh
docker@code:~$ sudo ./make_data.sh
docker@code:~$ exit

Set up jenkins build environment

$ cd containers
$ docker-compose up

code-infra's People

Contributors

andrey9kin avatar drbosse avatar jkrag avatar meekrosoft avatar sofusalbertsen avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stef-r steenth

code-infra's Issues

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.