Fixed java container version, configured dev-cluster FS mirror

Edward M. Kagan 5 years ago
parent 8b0124add0
commit c19e5e16c8

@ -1,46 +1,45 @@
version: '3'
version: "3"
services:
gate:
image: traefik:v2.4.7
command:
- --api.insecure=true
- --providers.docker=true
- --entrypoints.web.address=:80
command:
- --api.insecure=true
- --providers.docker=true
- --entrypoints.web.address=:80
ports:
- 8080:80
- 9090:8080
- 8080:80
- 9090:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
back:
user: ${CURRENT_UID}
build:
build:
dockerfile: quarkus-dev
context: ../img
labels:
traefik.enable: 'true'
traefik.enable: "true"
traefik.http.routers.back.entrypoints: web
traefik.http.routers.back.rule: PathPrefix(`/api`)
traefik.http.services.back.loadbalancer.server.port: '8080'
traefik.http.routers.back.middlewares: "back_strip"
traefik.http.middlewares.back_strip.stripprefix.prefixes: "/api"
traefik.http.services.back.loadbalancer.server.port: "8080"
volumes:
- ../../../traqtor-editor/back:/app:cached
- ../../.cache/mvn:/mvn:delegated
- ~/:/home/dude
expose:
- 8080
face:
user: ${CURRENT_UID}
build:
build:
dockerfile: quasar-dev
context: ../img
labels:
traefik.enable: 'true'
traefik.enable: "true"
traefik.http.routers.face.entrypoints: web
traefik.http.routers.face.rule: PathPrefix(`/`)
traefik.http.services.face.loadbalancer.server.port: '8080'
traefik.http.services.face.loadbalancer.server.port: "8080"
volumes:
- ../../../traqtor-editor/face:/app:cached
- ../../.cache/npm:/app/node_modules:delegated
expose:
- 8080
- 8080

@ -1,6 +1,6 @@
FROM amazoncorretto:16-alpine-jdk
RUN adduser dude --disabled-password --home /app --uid 412 && \
echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/java-16-amazon-corretto/conf/security/java.security && \
FROM amazoncorretto:11-alpine-jdk
RUN adduser dude --disabled-password --home /home/dude --uid 412 && \
echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/conf/security/java.security && \
wget https://apache-mirror.rbc.ru/pub/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && \
tar -zxvf apache-maven-3.6.3-bin.tar.gz -C /opt/ && \
rm apache-maven-3.6.3-bin.tar.gz && \
@ -9,6 +9,7 @@ RUN adduser dude --disabled-password --home /app --uid 412 && \
ln -s /opt/maven/bin/mvn /usr/bin/mvn && \
mkdir /mvn && \
chmod 777 /mvn && \
mkdir /app && \
chmod 777 /app
USER dude
EXPOSE 8080

@ -1,6 +1,5 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>two.pm.traqtor</groupId>
<artifactId>editor</artifactId>
@ -38,6 +37,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>

@ -0,0 +1,3 @@
# quarkus.http.root-path=/api #Code-lens fails to produce correct link. If they'll fix it, we'll use it.
file-manager.home = /home/dude

@ -1,5 +1,9 @@
{
"folders": [
{
"name": "_root",
"path": "."
},
{
"name": "chug",
"path": ".chug"
@ -14,6 +18,11 @@
}
],
"settings": {
"workbench.editor.labelFormat": "medium",
"files.exclude": {
"*/**/node_modules/": true,
"*/**/.quasar/": true
},
"java.configuration.updateBuildConfiguration": "automatic",
"editor.formatOnSave": true,
"editor.rulers": [120],

Loading…
Cancel
Save