[DO-316] Add image for doxygen w java & plantuml (#1)
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Reviewed-on: https://git.avroid.tech/Docker/doxygen/pulls/1 Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
This commit is contained in:
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,9 +1,9 @@
|
|||||||
# Changelog
|
doxygen/1.9.8
|
||||||
|
|
||||||
## 1.0
|
### 04.02.2025
|
||||||
|
|
||||||
### 15.09.2023
|
Install:
|
||||||
|
|
||||||
CREATE:
|
- doxygen
|
||||||
|
- openjdk version "21.0.5"
|
||||||
* Dockerfile
|
- plantuml v1.2025.0
|
||||||
|
|||||||
18
Dockerfile
18
Dockerfile
@@ -1,11 +1,12 @@
|
|||||||
ARG DOCKER_REGISTRY=harbor.avroid.tech/docker-hub-proxy/library
|
ARG DOCKER_REGISTRY=harbor.avroid.tech/docker-hub-proxy
|
||||||
|
|
||||||
# https://hub.docker.com/_/ubuntu
|
FROM ${DOCKER_REGISTRY}/ubuntu:24.04
|
||||||
FROM ${DOCKER_REGISTRY}/ubuntu:22.04
|
LABEL description="Base build image based on ubuntu 24.04"
|
||||||
LABEL description="Base build image based on ubuntu 22.04"
|
|
||||||
|
|
||||||
# Disable output interactive dialogs in console for service commands
|
# Disable output interactive dialogs in console for service commands
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV PLANTUML="1.2025.0"
|
||||||
|
ENV TZ="Europe/Moscow"
|
||||||
|
|
||||||
# Nexus
|
# Nexus
|
||||||
ARG NEXUS_DOMAIN_NAME="nexus.avroid.tech"
|
ARG NEXUS_DOMAIN_NAME="nexus.avroid.tech"
|
||||||
@@ -21,8 +22,6 @@ RUN sed -ie "s/deb\ http\:\/\/archive.ubuntu.com\/ubuntu/deb\ [trusted=yes] http
|
|||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ENV TZ="Europe/Moscow"
|
|
||||||
|
|
||||||
# Set timezone on Ubuntu
|
# Set timezone on Ubuntu
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y --no-install-recommends tzdata && \
|
apt install -y --no-install-recommends tzdata && \
|
||||||
@@ -34,6 +33,9 @@ RUN apt update && \
|
|||||||
# Upgrade OS in container
|
# Upgrade OS in container
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y --no-install-recommends apt-utils && \
|
apt install -y --no-install-recommends apt-utils && \
|
||||||
|
apt install doxygen wget graphviz default-jdk -y && \
|
||||||
apt dist-upgrade -y && \
|
apt dist-upgrade -y && \
|
||||||
apt clean && \
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
||||||
|
USER ubuntu
|
||||||
|
RUN wget https://github.com/plantuml/plantuml/releases/download/v${PLANTUML}/plantuml-${PLANTUML}.jar -P /home/ubuntu
|
||||||
|
|||||||
17
Makefile
17
Makefile
@@ -1,17 +1,11 @@
|
|||||||
.PHONY: all build push clean
|
.PHONY: all build push clean
|
||||||
|
|
||||||
IMAGE_NAME = template
|
IMAGE_NAME = doxygen
|
||||||
IMAGE_GROUP = devops
|
IMAGE_GROUP = devops
|
||||||
IMAGE_TAG = 1.0
|
IMAGE_TAG = 1.9.8
|
||||||
REVISION =
|
REVISION = -1
|
||||||
DOCKER_REGISTRY = harbor.avroid.tech
|
DOCKER_REGISTRY = harbor.avroid.tech
|
||||||
|
|
||||||
CI_FLAGS =
|
|
||||||
|
|
||||||
ifeq ($(CI), false)
|
|
||||||
CI_FLAGS = --no-cache
|
|
||||||
endif
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@echo 'DEFAULT:'
|
@echo 'DEFAULT:'
|
||||||
@echo ' make build'
|
@echo ' make build'
|
||||||
@@ -20,10 +14,11 @@ all:
|
|||||||
@echo ' make clean'
|
@echo ' make clean'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
DOCKER_BUILDKIT=1 docker build $(CI_FLAGS) \
|
DOCKER_BUILDKIT=1 docker build \
|
||||||
-f Dockerfile \
|
-f Dockerfile \
|
||||||
|
--build-arg IMAGE_TAG=$(IMAGE_TAG) \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-t $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION) src/
|
-t $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION) .
|
||||||
|
|
||||||
push:
|
push:
|
||||||
docker push $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION)
|
docker push $(DOCKER_REGISTRY)/$(IMAGE_GROUP)/$(IMAGE_NAME):$(IMAGE_TAG)$(REVISION)
|
||||||
|
|||||||
Reference in New Issue
Block a user