Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #3

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d6bc3a1
Merge pull request #6 from coopTilleuls/pull-request
Hipska Oct 25, 2022
203475a
iTop 2.7.8 release
Hipska Jan 12, 2023
80704df
Build current supported community versions for amd64 and arm64
Hipska Mar 2, 2023
bdb7a51
Add action to only build all platforms
Hipska Mar 7, 2023
21fd035
Tail 0 lines at startup
Hipska Apr 12, 2023
13ea453
iTop 3.0.3 release
Hipska Apr 12, 2023
faf6cc9
Add links to the relevant changelog section
Hipska Apr 12, 2023
7550216
Essential/Professional: Add php-imap package to Dockerfiles
mraenker May 23, 2023
9b762e3
Merge pull request #11 from itomig-de/master
Hipska May 23, 2023
43d17e3
Add a Dockerfile for TeemIp
Hipska Jun 16, 2023
3d3c473
iTop 3.1 beta
Hipska Jun 19, 2023
8592ac3
Apply iTop security best practices where applicable
Hipska Jun 20, 2023
b340060
iTop 3.1 shouldn't get latest tag yet.
Hipska Jun 20, 2023
e91b7eb
iTop 3.1.0 release
Hipska Jul 31, 2023
5f9d3c5
TeemIp 3.1.0 released
Hipska Jul 31, 2023
3d23717
TeemIp 3.1.0-1 released
Hipska Aug 7, 2023
33f618e
iTop 3.1.0-2 released
Hipska Aug 9, 2023
c1b7d9e
iTop 2.7.9 released
Hipska Aug 10, 2023
c3c5661
Increase php memory limit to the recommended value of 256M
Hipska Sep 8, 2023
6168cba
Cleanup helm chart readme
Hipska Sep 8, 2023
88dfd3d
Cleanup Dockerfile's
Hipska Sep 8, 2023
d5adf47
Also add recommended php.ini file for iTop 3.0
Hipska Sep 8, 2023
062c8e3
TeemIp 3.1.2 released
Hipska Sep 25, 2023
b35884a
Add hadolint findings
Hipska Dec 5, 2023
0496560
TeemIp 3.1.3
Hipska Dec 19, 2023
b614349
TeemIP 3.1.4
Hipska Dec 21, 2023
eb28bd8
iTop 3.1.1 released
Hipska Jan 8, 2024
0dceded
iTop 2.7.10 and 3.0.4 released
Hipska Jan 17, 2024
a0e0f14
Streamline Dockerfile comments
Hipska Jun 25, 2024
b6974b3
iTop 3.2 beta1
Hipska Jun 25, 2024
9882162
Cache Docker layers on consecutive builds
Hipska Jun 25, 2024
2cadac3
Streamline Dockerfile comments
Hipska Jun 25, 2024
5c1396c
Remove unneeded tags while building
Hipska Jun 25, 2024
26a4a4d
TeemIP 3.2.0
Hipska Aug 20, 2024
5506244
iTop 3.2 released
Hipska Sep 5, 2024
96a816c
iTop 3.2.0-2 released
Hipska Sep 16, 2024
ae6d802
iTop 2.7.11 and 3.1.2 released
Hipska Oct 23, 2024
4a59aab
Correct 3.2.0 release links
Hipska Nov 6, 2024
9ed641b
iTop Professional 3.2.0 update
Hipska Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:7.1-apache

# install extra packages
# Install extra packages
RUN apt-get update \
&& apt-get install -y \
graphviz \
Expand Down
2 changes: 1 addition & 1 deletion 2.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:7.1-apache

# install extra packages
# Install extra packages
RUN apt-get update \
&& apt-get install -y \
graphviz \
Expand Down
2 changes: 1 addition & 1 deletion 2.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:7.1-apache

# install extra packages
# Install extra packages
RUN apt-get update \
&& apt-get install -y \
graphviz \
Expand Down
7 changes: 3 additions & 4 deletions 2.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM php:7.2-apache

# add helper script
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Add helper script
COPY --from=mlocati/php-extension-installer:latest /usr/bin/install-php-extensions /usr/local/bin/

# install extra packages
# Install extra packages
RUN apt-get update \
&& apt-get install -y \
graphviz \
mariadb-client \
unzip \
&& chmod uga+x /usr/local/bin/install-php-extensions \
&& install-php-extensions \
gd \
ldap \
Expand Down
14 changes: 7 additions & 7 deletions 2.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
FROM php:7.2-apache

# load version info from arguments
# Load version info from arguments
ARG release
ARG patch

# add helper script
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Add helper script
COPY --from=mlocati/php-extension-installer:latest /usr/bin/install-php-extensions /usr/local/bin/

# install extra packages
# Install extra packages
# hadolint ignore=DL3008,DL3009
RUN apt-get update \
&& apt-get install -y \
&& apt-get install -y --no-install-recommends \
graphviz \
mariadb-client \
unzip \
&& chmod uga+x /usr/local/bin/install-php-extensions \
&& install-php-extensions \
gd \
ldap \
mcrypt \
mysqli \
soap \
zip
zip

# Load iTop files
RUN curl -L -o /tmp/iTop.zip https://sourceforge.net/projects/itop/files/itop/${release}/iTop-${release}-${patch}.zip \
Expand Down
37 changes: 29 additions & 8 deletions 2.7/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
version = 2.7.7
version = 2.7.11
release = $(version)
patch = 9622
patch = 14870
builder = itop_builder
platforms = linux/arm64,linux/amd64

all: build push
all: setup_builder load

build:
docker build --pull \
setup_builder:
docker buildx inspect $(builder) > /dev/null || docker buildx create --name $(builder) --driver docker-container --platform $(platforms) --bootstrap

build: setup_builder
# Build all supported platforms
docker buildx build --pull \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) .

load: setup_builder
# Build and load current platform
docker buildx build --pull --load \
--builder $(builder) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop:2.7 \
-t supervisions/itop:$(version) \
-t supervisions/itop:$(release) .

push:
docker push supervisions/itop:2.7
docker push supervisions/itop:$(version)
push: setup_builder
# Build and push all supported platforms
docker buildx build --pull --push \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop:2.7 \
-t supervisions/itop:$(version) .
9 changes: 9 additions & 0 deletions 2.7/php.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[Core]
; iTop recommended value
memory_limit = 256M
; iTop security best practice
zend.exception_ignore_args = true

[Session]
; iTop wants save_path to be set
session.save_path = "/tmp"
; iTop security best practices
session.cookie_httponly = true
session.cookie_samesite = "Lax"
14 changes: 7 additions & 7 deletions 3.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
FROM php:7.4-apache

# load version info from arguments
# Load version info from arguments
ARG release
ARG patch

# add helper script
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Add helper script
COPY --from=mlocati/php-extension-installer:latest /usr/bin/install-php-extensions /usr/local/bin/

# install extra packages
# Install extra packages
# hadolint ignore=DL3008,DL3009
RUN apt-get update \
&& apt-get install -y \
&& apt-get install -y --no-install-recommends \
graphviz \
mariadb-client \
unzip \
&& chmod uga+x /usr/local/bin/install-php-extensions \
&& install-php-extensions \
apcu \
gd \
ldap \
mcrypt \
mysqli \
soap \
zip
zip

# Load iTop files
RUN curl -L -o /tmp/iTop.zip https://sourceforge.net/projects/itop/files/itop/${release}/iTop-${release}-${patch}.zip \
Expand Down
41 changes: 30 additions & 11 deletions 3.0/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
version = 3.0.2
release = $(version)-1
patch = 9957
version = 3.0.4
release = $(version)
patch = 12690
builder = itop_builder
platforms = linux/arm64,linux/amd64

all: build push
all: setup_builder load

build:
docker build --pull \
setup_builder:
docker buildx inspect $(builder) > /dev/null || docker buildx create --name $(builder) --driver docker-container --platform $(platforms) --bootstrap

build: setup_builder
# Build all supported platforms
docker buildx build --pull \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) .

load: setup_builder
# Build and load current platform
docker buildx build --pull --load \
--builder $(builder) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop \
-t supervisions/itop:3.0 \
-t supervisions/itop:$(version) \
-t supervisions/itop:$(release) .

push:
docker push supervisions/itop
docker push supervisions/itop:3.0
docker push supervisions/itop:$(version)
push: setup_builder
# Build and push all supported platforms
docker buildx build --pull --push \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop:3.0 \
-t supervisions/itop:$(version) .
2 changes: 1 addition & 1 deletion 3.0/docker-itop-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ if [ "${1#-}" != "$1" ]; then
fi

# show iTop log messages in docker logs
tail -F log/setup.log log/error.log log/deadlocks.log log/deprecated-calls.log log/tools.log > /dev/stderr &
tail --pid 1 -n0 -F log/setup.log log/error.log log/deadlocks.log log/deprecated-calls.log log/tools.log > /dev/stderr &

exec "$@"
9 changes: 9 additions & 0 deletions 3.0/php.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[Core]
; iTop recommended value
memory_limit = 256M
; iTop security best practice
zend.exception_ignore_args = true

[Session]
; iTop wants save_path to be set
session.save_path = "/tmp"
; iTop security best practices
session.cookie_httponly = true
session.cookie_samesite = "Lax"
45 changes: 45 additions & 0 deletions 3.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM php:8.1-apache

# Load version info from arguments
ARG release
ARG patch

# Add helper script
COPY --from=mlocati/php-extension-installer:latest /usr/bin/install-php-extensions /usr/local/bin/

# Install extra packages
# hadolint ignore=DL3008,DL3009
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
graphviz \
mariadb-client \
unzip \
&& install-php-extensions \
apcu \
gd \
ldap \
mcrypt \
mysqli \
soap \
zip

# Load iTop files
RUN curl -L -o /tmp/iTop.zip https://sourceforge.net/projects/itop/files/itop/${release}/iTop-${release}-${patch}.zip \
&& unzip /tmp/iTop.zip -d /tmp/ web/* \
&& mv -v /tmp/web/* /var/www/html/ \
&& mkdir /var/www/html/env-production \
&& chown -R www-data: /var/www/html/ \
&& rm -rf /tmp/iTop.zip /tmp/web

# Add default configuration
COPY php.ini /usr/local/etc/php/php.ini
COPY config-itop.php /var/www/html/conf/production/config-itop.php
RUN chown -R www-data: /var/www/html/conf

# Add custom entrypoint
COPY docker-itop-entrypoint /usr/local/bin/
ENTRYPOINT ["docker-itop-entrypoint"]
CMD ["apache2-foreground"]

ENV DB_HOSTNAME="db" DB_PREFIX=""
VOLUME ["/var/www/html/conf", "/var/www/html/data", "/var/www/html/env-production", "/var/www/html/log"]
38 changes: 38 additions & 0 deletions 3.1/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version = 3.1.2
release = $(version)
patch = 14913
builder = itop_builder
platforms = linux/arm64,linux/amd64

all: setup_builder load

setup_builder:
docker buildx inspect $(builder) > /dev/null || docker buildx create --name $(builder) --driver docker-container --platform $(platforms) --bootstrap

build: setup_builder
# Build all supported platforms
docker buildx build --pull \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) .

load: setup_builder
# Build and load current platform
docker buildx build --pull --load \
--builder $(builder) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop:3.1 \
-t supervisions/itop:$(version) \
-t supervisions/itop:$(release) .

push: setup_builder
# Build and push all supported platforms
docker buildx build --pull --push \
--builder $(builder) \
--platform $(platforms) \
--build-arg release=$(release) \
--build-arg patch=$(patch) \
-t supervisions/itop:3.1 \
-t supervisions/itop:$(version) .
12 changes: 12 additions & 0 deletions 3.1/config-itop.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

$MySettings = array(
'db_host' => $_ENV['DB_HOSTNAME'],
'db_name' => $_ENV['DB_ENV_MYSQL_DATABASE'],
'db_user' => $_ENV['DB_ENV_MYSQL_USER'],
'db_pwd' => $_ENV['DB_ENV_MYSQL_PASSWORD'],
'db_subname' => $_ENV['DB_PREFIX'],
);

$MyModuleSettings = array();
$MyModules = array('addons' => array());
12 changes: 12 additions & 0 deletions 3.1/docker-itop-entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
set -e

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- php "$@"
fi

# show iTop log messages in docker logs
tail --pid 1 -n0 -F log/setup.log log/error.log log/deadlocks.log log/deprecated-calls.log log/tools.log > /dev/stderr &

exec "$@"
12 changes: 12 additions & 0 deletions 3.1/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Core]
; iTop recommended value
memory_limit = 256M
; iTop security best practice
zend.exception_ignore_args = true

[Session]
; iTop wants save_path to be set
session.save_path = "/tmp"
; iTop security best practices
session.cookie_httponly = true
session.cookie_samesite = "Lax"
Loading