Fix fonts in docker
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
12
.idea/runConfigurations/docker_compose_yml__Compose_Deployment.xml
generated
Normal file
12
.idea/runConfigurations/docker_compose_yml__Compose_Deployment.xml
generated
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="docker-compose.yml: Compose Deployment" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker">
|
||||||
|
<deployment type="docker-compose.yml">
|
||||||
|
<settings>
|
||||||
|
<option name="envFilePath" value="" />
|
||||||
|
<option name="commandLineOptions" value="--build" />
|
||||||
|
<option name="sourceFilePath" value="docker-compose.yml" />
|
||||||
|
</settings>
|
||||||
|
</deployment>
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM tomcat:9-jre8-alpine
|
FROM tomcat:9-jre8-alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache fontconfig ttf-dejavu
|
||||||
|
|
||||||
ENV TZ="Europe/Rome"
|
ENV TZ="Europe/Rome"
|
||||||
ENV JAVA_OPTS="-DDISABLE_DROOLS_COMPILE=TRUE -Xms512M -Xmx1G -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
|
ENV JAVA_OPTS="-DDISABLE_DROOLS_COMPILE=TRUE -Xms512M -Xmx1G -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
|
||||||
ENV USERDOMAIN="STUDIO-ML"
|
ENV USERDOMAIN="STUDIO-ML"
|
||||||
@@ -9,5 +11,8 @@ COPY docker/tomcat/conf/integry/ems_automated_operations.json /usr/local/tomcat/
|
|||||||
COPY docker/tomcat/conf/integry/ems_settings.json /usr/local/tomcat/conf/integry/
|
COPY docker/tomcat/conf/integry/ems_settings.json /usr/local/tomcat/conf/integry/
|
||||||
COPY ems-engine/target/ems-api.war /usr/local/tomcat/webapps/
|
COPY ems-engine/target/ems-api.war /usr/local/tomcat/webapps/
|
||||||
|
|
||||||
|
#COPY docker/FontTest.class .
|
||||||
|
#ENTRYPOINT ["java","FontTest"]
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
EXPOSE 5005
|
EXPOSE 5005
|
||||||
BIN
docker/FontTest.class
Normal file
BIN
docker/FontTest.class
Normal file
Binary file not shown.
14
docker/FontTest.java
Normal file
14
docker/FontTest.java
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import java.awt.*;
|
||||||
|
|
||||||
|
public class FontTest {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String[] names = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
|
||||||
|
|
||||||
|
System.out.println("Found " + names.length + " fonts:");
|
||||||
|
|
||||||
|
for (String name : names) {
|
||||||
|
System.out.println(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user