Skip to content

Commit 53b02b1

Browse files
sattvikcSattviktamassoltesz
authored
feat: gha java upgrade merge (#259)
* fix: typo * fix: update startdb.sh * fix: startDb.sh * fix: startDb.sh * fix: port for testing * fix: tests * fix: tests * fix: tests * fix: tests * fix: retry * fix: docker scripts * fix: dockerfile * fix: dockerfile * fix: dockerfile * fix: changelog and version * fix: ee * fix: dockerfile * feat: update java and tomcat and gradle * fix: update java * fix: download upgraded jre version * fix: remove debug ls commands * fix: tests * fix: password logging test * fix: tests * fix: build version * fix: pluginInterfaceSupported json * fix: disable circle ci --------- Co-authored-by: Sattvik <[email protected]> Co-authored-by: tamassoltesz <[email protected]>
1 parent d9004c6 commit 53b02b1

File tree

16 files changed

+633
-55
lines changed

16 files changed

+633
-55
lines changed

.github/helpers/docker/Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM ubuntu:bionic-20200219 AS tmp
2+
WORKDIR /build
3+
RUN apt-get update && apt-get install -y curl wget zip
4+
5+
RUN wget https://github.com/supertokens/jre/raw/refs/heads/feat/jre21/jre-21.0.7-linux.zip
6+
RUN unzip jre-21.0.7-linux.zip
7+
RUN mv jre-21.0.7 jre
8+
ADD ./cli ./cli
9+
ADD ./core ./core
10+
ADD ./plugin-interface ./plugin-interface
11+
ADD ./plugin ./plugin
12+
ADD ./ee ./ee
13+
ADD ./config.yaml ./config.yaml
14+
ADD ./version.yaml ./version.yaml
15+
16+
RUN ls && ./jre/bin/java -classpath "./cli/*" io.supertokens.cli.Main true $@
17+
18+
FROM debian:bookworm-slim
19+
RUN groupadd supertokens && useradd -m -s /bin/bash -g supertokens supertokens
20+
RUN apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr curl && rm -rf /var/lib/apt/lists/*
21+
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
22+
ENV GOSU_VERSION=1.7
23+
RUN set -x \
24+
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
25+
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
26+
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
27+
&& export GNUPGHOME="$(mktemp -d)" \
28+
&& gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
29+
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
30+
&& gpgconf --kill all \
31+
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
32+
&& chmod +x /usr/local/bin/gosu \
33+
&& apt-get purge -y --auto-remove wget
34+
COPY --from=tmp --chown=supertokens /usr/lib/supertokens /usr/lib/supertokens
35+
COPY --from=tmp --chown=supertokens /usr/bin/supertokens /usr/bin/supertokens
36+
COPY ./supertokens-postgresql-plugin/.github/helpers/docker/docker-entrypoint.sh /usr/local/bin/
37+
RUN echo "$(md5sum /usr/lib/supertokens/config.yaml | awk '{ print $1 }')" >> /CONFIG_HASH
38+
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
39+
EXPOSE 3567
40+
USER "supertokens"
41+
ENTRYPOINT ["docker-entrypoint.sh"]
42+
CMD ["supertokens", "start"]

0 commit comments

Comments
 (0)