Skip to content

Commit c32c0d8

Browse files
author
sebagomez
committed
Java image and local files
1 parent 73682f0 commit c32c0d8

7 files changed

Lines changed: 67 additions & 5 deletions

File tree

.net core/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
FROM microsoft/aspnetcore:1.1
33

4-
LABEL com.genexus.name: "Genexus .NET Core for Linux" \
5-
com.genexus.description: "Genexus Docker Compose file for .NET Core environments"
4+
LABEL com.genexus.name: "Genexus .NET Core for Linux"
5+
com.genexus.description: "Genexus Dockerfile for .NET Core environments"
66
com.genexus.url: "http://www.genexus.com/"
77
com.genexus.vcs-url: "https://github.com/genexuslabs/dockerfiles"
88
com.genexus.vendor: "GeneXus"

.net/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
12
FROM microsoft/aspnet:4.6.2
23

3-
LABEL com.genexus.name: "Genexus .NET Web" \
4+
LABEL com.genexus.name: "Genexus .NET Web"
45
com.genexus.description: "Genexus Docker Compose file for .NET Framework environments"
56
com.genexus.url: "http://www.genexus.com/"
67
com.genexus.vcs-url: "https://github.com/genexuslabs/dockerfiles"
78
com.genexus.vendor: "GeneXus"
89
com.genexus.schema-version: "1.0"
9-
com.genexus.maintainer: "Seba Gómez <sgomez@genexus.com>"
10+
com.genexus.maintainer: "Seba Gómez <sgomez@genexus.com>"
1011

1112
ADD https://github.com/Microsoft/iis-docker/raw/d6580f65bdf060213cd8053762591ac8b5e94746/windowsservercore/ServiceMonitor.exe /

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ By default, Genexus generates a docker-compose file with official images (asp.ne
77

88
- [.net Framework](./.net)
99
- [.net core](./.net%20core)
10-
- [Java] <-- comming soon
10+
- [java](./java)
1111

12+
THESE IMAGES ARE NOT NO BE USED IN PRODUCTION ENVIRONMENTS

java/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
FROM tomcat:8.5-jre8-alpine
3+
4+
LABEL com.genexus.name: "Genexus Java Tomcat for Linux"
5+
com.genexus.description: "Genexus Dockerfile for Java Tomcat environments"
6+
com.genexus.url: "http://www.genexus.com/"
7+
com.genexus.vcs-url: "https://github.com/genexuslabs/dockerfiles"
8+
com.genexus.vendor: "GeneXus"
9+
com.genexus.schema-version: "1.0"
10+
com.genexus.maintainer: "Seba Gómez <sgomez@genexus.com>"
11+
12+
COPY tomcat-users.xml /usr/local/tomcat/conf/tomcat-users.xml
13+
COPY manager.xml /usr/local/tomcat/conf/Catalina/localhost/manager.xml

java/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This Dockerfile is used based on the tomcat:8.5-jre8-alpine and it allows remote access to the Tomcat Web Application Manager.
2+
It's default user and password is admin:admin123

java/manager.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager">
2+
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />
3+
</Context>

java/tomcat-users.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<tomcat-users xmlns="http://tomcat.apache.org/xml"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
21+
version="1.0">
22+
<!--
23+
NOTE: By default, no user is included in the "manager-gui" role required
24+
to operate the "/manager/html" web application. If you wish to use this app,
25+
you must define such a user - the username and password are arbitrary. It is
26+
strongly recommended that you do NOT use one of the users in the commented out
27+
section below since they are intended for use with the examples web
28+
application.
29+
-->
30+
<!--
31+
NOTE: The sample user and role entries below are intended for use with the
32+
examples web application. They are wrapped in a comment and thus are ignored
33+
when reading this file. If you wish to configure these users for use with the
34+
examples web application, do not forget to remove the <!.. ..> that surrounds
35+
them. You will also need to set the passwords to something appropriate.
36+
-->
37+
38+
<role rolename="admin-gui"/>
39+
<role rolename="manager-gui"/>
40+
<user username="admin" password="admin123" roles="admin-gui,manager-gui"/>
41+
42+
</tomcat-users>

0 commit comments

Comments
 (0)