update recovered sdlc git repo

This commit is contained in:
andreas
2024-02-11 11:54:51 +00:00
parent f808ebae4a
commit 6b2eb41193
82 changed files with 3903 additions and 53 deletions

View File

@@ -24,11 +24,17 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
rm -rf webapp-6.0.0.57.1049268-Ubuntu_20.04-all
rm -rf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64
EOF
COPY etc-zntrl /root/etc
# RUN <<EOF
# sed -i \
# -e's/define("SECURE_COOKIES", true);/define("SECURE_COOKIES", false);/' \
# -e's| define("DEFAULT_SERVER", "default:");| define("DEFAULT_SERVER", "http://\$SERVER:236/kopano");|' \
# -e's|define("LOG_USER_LEVEL", LOGLEVEL_OFF);|define("LOG_USER_LEVEL", LOGLEVEL_INFO);|' \
# -e's|Europe/Amsterdam|Europe/Berlin|' \
# /etc/kopano/webapp/config.php
# EOF
# use envsubst in entrypoint script to convert config templates to actual config files
RUN <<EOF
sed -i -e's/define("SECURE_COOKIES", true);/define("SECURE_COOKIES", false);/' /etc/kopano/webapp/config.php
EOF
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
COPY --chmod=0775 webapp/entrypoint.sh /entrypoint.sh
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2", "-DFOREGROUND"]

View File

@@ -1,8 +1,8 @@
#!/usr/bin/bash
# export DOCKER_BUILDKIT=1
docker run -d --rm --name dist -p80:80 -v/root/kopano-docker/dist:/usr/local/apache2/htdocs httpd
docker build --no-cache --progress=plain -t webapp .
docker build -t webapp .
docker build --no-cache --progress=plain --build-arg MYSQL_PASSWD='zAKt(85&' -t webapp -f webapp/Dockerfile .
docker build --build-arg MYSQL_PASSWD='zAKt(85&' -t webapp -f webapp/Dockerfile .
docker run -it --name webapp -p8080:80 webapp
docker logs -f webapp
docker exec -it webapp bash