Skip to content

code-ebi/DevOpsTeam1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOpsTeam1

Deploying a HTML Site with Docker and httpd Create a directory Team1 under c:\users\ABC Create a txt file without extension and named it Dockerfile and save the following value FROM httpd:alpine COPY ./team1.html/ /usr/local/apache2/htdocs/ Build the Docker image for the html server docker build -t project-website:v1.0.0 . confirm the creation... docker images Run the Docker container docker run -d --name first-container -p 84:80 project-website:v1.0.0 Test the port's availability curl localhost:84

Create a “DevOpsTeam1” folder in Team1 location. Move Docker and team1.html file there. Open VS code to include the container to push in GIT Select the DevOpsTeam1 folder….follow the instruction. Open the terminal to write the Git Command to push the container.

git add Dockerfile git add team1.html got status git config --global user.name "Famura17" git config --global user.email "[email protected]" git config --global --list git commit -m "my first commit" git checkout -b DOps git push origin DOps Browser pop up with authentication message. Agreed Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
remote: remote: Create a pull request for 'DOps' on GitHub by visiting: remote: https://github.com/Famura17/DevOpsTeam1/pull/new/DOps remote: To https://github.com/Famura17/DevOpsTeam1.git * [new branch] DOps -> DOps

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 59.5%
  • Dockerfile 40.5%