Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 5 additions & 10 deletions tests/gitserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
FROM europe-docker.pkg.dev/kyma-project/prod/external/library/alpine:3.24.0
FROM europe-docker.pkg.dev/kyma-project/prod/external/library/alpine:3.24.1

RUN apk add --no-cache git-daemon && \
# apache2 and apache2-utils need to be in version smaller or equal to 2.4.58-r0
# issue: https://github.com/kyma-project/serverless/issues/998
apk add --no-cache apache2=2.4.58-r0 apache2-utils=2.4.58-r0 --repository http://dl-cdn.alpinelinux.org/alpine/v3.15/main && \
apk upgrade --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
expat
RUN apk add --no-cache git-daemon apache2 apache2-utils

COPY ./etc/git.conf /etc/apache2/conf.d/git.conf
COPY ./etc/httpd.conf /etc/apache2/httpd.conf
RUN git config --system http.receivepack true &&\
git config --system http.uploadpack true &&\
git config --global user.email "gitserver@kyma-project.io" &&\
git config --global user.name "Git Server"
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_LOG_DIR=/var/log/apache2
ENV APACHE_LOCK_DIR=/var/lock/apache2
ENV APACHE_PID_FILE=/var/run/apache2.pid

COPY ./etc/init_repos.sh /tmp/init_repos.sh
COPY ./repos /tmp/repos
Expand Down
8 changes: 4 additions & 4 deletions tests/gitserver/repos/function/handler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
main: function (event, context) {
return 'GITOPS 1'
}
}
main: function (req, res) {
res.send("GITOPS 1");
},
};
Loading