Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion MF05-PRA05.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,15 @@ Citations:
[4] https://www.youtube.com/watch?v=RKaxATb2kz8
[5] https://www.jenkins.io/doc/book/installing/docker/
[6] https://github.com/jenkinsci/docker
[7] https://phoenixnap.com/kb/how-to-configure-docker-in-jenkins
[7] https://phoenixnap.com/kb/how-to-configure-docker-in-jenkins

### Desenvolupament de l'practica

[1] Comandes Docker.

- sudo docker run -d --name jenkins -p 9090:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --privileged jenkins/jenkins:lts
- sudo docker exec -it --user root 30d6f6af47b6 bash
- sudo docker ps



15 changes: 15 additions & 0 deletions Resources/React_projects/docker-sandbox/app3.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Use an official lightweight Nginx image
FROM nginx:alpine

# Set the working directory to /usr/share/nginx/html
WORKDIR /usr/share/nginx/html

# Copy the static files from the dist directory to the container
COPY books-frontend/dist .

# Expose port 80 for the web server
EXPOSE 5173

# Command to run when the container starts
CMD ["nginx", "-g", "daemon off;"]

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-CO1OO85Z.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-kQJbKSsj.css">
</head>
<body>
<div id="root"></div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.