Fixed java container version, configured dev-cluster FS mirror

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

@ -1,4 +1,4 @@
version: '3' version: "3"
services: services:
gate: gate:
@ -18,15 +18,14 @@ services:
dockerfile: quarkus-dev dockerfile: quarkus-dev
context: ../img context: ../img
labels: labels:
traefik.enable: 'true' traefik.enable: "true"
traefik.http.routers.back.entrypoints: web traefik.http.routers.back.entrypoints: web
traefik.http.routers.back.rule: PathPrefix(`/api`) traefik.http.routers.back.rule: PathPrefix(`/api`)
traefik.http.services.back.loadbalancer.server.port: '8080' traefik.http.services.back.loadbalancer.server.port: "8080"
traefik.http.routers.back.middlewares: "back_strip"
traefik.http.middlewares.back_strip.stripprefix.prefixes: "/api"
volumes: volumes:
- ../../../traqtor-editor/back:/app:cached - ../../../traqtor-editor/back:/app:cached
- ../../.cache/mvn:/mvn:delegated - ../../.cache/mvn:/mvn:delegated
- ~/:/home/dude
expose: expose:
- 8080 - 8080
face: face:
@ -35,10 +34,10 @@ services:
dockerfile: quasar-dev dockerfile: quasar-dev
context: ../img context: ../img
labels: labels:
traefik.enable: 'true' traefik.enable: "true"
traefik.http.routers.face.entrypoints: web traefik.http.routers.face.entrypoints: web
traefik.http.routers.face.rule: PathPrefix(`/`) traefik.http.routers.face.rule: PathPrefix(`/`)
traefik.http.services.face.loadbalancer.server.port: '8080' traefik.http.services.face.loadbalancer.server.port: "8080"
volumes: volumes:
- ../../../traqtor-editor/face:/app:cached - ../../../traqtor-editor/face:/app:cached
- ../../.cache/npm:/app/node_modules:delegated - ../../.cache/npm:/app/node_modules:delegated

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

@ -1,6 +1,5 @@
<?xml version="1.0"?> <?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" <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">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>two.pm.traqtor</groupId> <groupId>two.pm.traqtor</groupId>
<artifactId>editor</artifactId> <artifactId>editor</artifactId>
@ -38,6 +37,10 @@
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId> <artifactId>quarkus-resteasy</artifactId>
</dependency> </dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
</dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId> <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": [ "folders": [
{
"name": "_root",
"path": "."
},
{ {
"name": "chug", "name": "chug",
"path": ".chug" "path": ".chug"
@ -14,6 +18,11 @@
} }
], ],
"settings": { "settings": {
"workbench.editor.labelFormat": "medium",
"files.exclude": {
"*/**/node_modules/": true,
"*/**/.quasar/": true
},
"java.configuration.updateBuildConfiguration": "automatic", "java.configuration.updateBuildConfiguration": "automatic",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.rulers": [120], "editor.rulers": [120],

Loading…
Cancel
Save