this is the api, database and frontend for a CI/CD pipeline
Important docker shell commandos: docker container ls //list active container docker container ls -a //list all container (also stopped) docker container rm CONTAINER ID //remove container with specific CONTAINER ID - more than one ID is possible docker images // list all images docker build -t NAME OF IMAGE . //create an image with the dockerfile in the current location of the shell docker run -d --restart always -p:8083:8083 parcelsizecomponent' //start a container out of the image parcelsizecomponent with the name parcelsizecomponent and run it in background (-d), make it accessible from outside via port 8083 docker network ls //list all existing networks docker network create NAMEOFNETWORK //creates a new network docker network connect NAMEOFNETWORK CONTAINER ID //connects a running container to a network /var/lib/jenkins/workspace/Parcelsize-Pipeline //local jenkins location
mysql -h IP_ADRESS DATENBANKNAME