Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
curso-kubernetes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Ernesto Suarez
curso-kubernetes
Commits
df6a92e8
Commit
df6a92e8
authored
May 27, 2019
by
Jose Ernesto Suarez Font
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Demo containers
parent
4e436a95
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
+43
-0
Dockerfile
demo-docker/apache/Dockerfile
+2
-0
index.html
demo-docker/apache/public/index.html
+9
-0
Dockerfile
demo-docker/node/Dockerfile
+6
-0
index.js
demo-docker/node/public/index.js
+12
-0
package.json
demo-docker/node/public/package.json
+14
-0
No files found.
demo-docker/apache/Dockerfile
0 → 100644
View file @
df6a92e8
FROM
httpd:2.4
COPY
./public/ /usr/local/apache2/htdocs/
\ No newline at end of file
demo-docker/apache/public/index.html
0 → 100644
View file @
df6a92e8
<!DOCTYPE html>
<html>
<head>
<title>
HW!
</title>
</head>
<body>
<h1>
Hello World!
</h1>
</body>
</html>
\ No newline at end of file
demo-docker/node/Dockerfile
0 → 100644
View file @
df6a92e8
FROM
node:4.6
WORKDIR
/app
COPY
./public/ /app
RUN
npm
install
EXPOSE
3000
CMD
npm start
\ No newline at end of file
demo-docker/node/public/index.js
0 → 100644
View file @
df6a92e8
var
express
=
require
(
'
express
'
);
var
app
=
express
();
app
.
get
(
'
/
'
,
function
(
req
,
res
)
{
res
.
send
(
'
Hello World!
'
);
});
var
server
=
app
.
listen
(
3000
,
function
()
{
var
host
=
server
.
address
().
address
;
var
port
=
server
.
address
().
port
;
console
.
log
(
'
Programa de ejemplo escuchando en http://%s:%s
'
,
host
,
port
);
});
\ No newline at end of file
demo-docker/node/public/package.json
0 → 100644
View file @
df6a92e8
{
"name"
:
"myapp"
,
"version"
:
"0.0.1"
,
"private"
:
true
,
"scripts"
:
{
"start"
:
"node index.js"
},
"engines"
:
{
"node"
:
"^4.6.2"
},
"dependencies"
:
{
"express"
:
"^4.17.1"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment