Skip to content

Commit fa8dd70

Browse files
authored
Merge pull request #47 from ziima/docker-entrypoint
Replace docker entrypoint with command
2 parents 123b080 + d04f3b4 commit fa8dd70

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RUN cd /build && \
1818
$M2_HOME/bin/mvn verify -DskipDocker && \
1919
mkdir /app && \
2020
cp target/*.jar /app && \
21-
cp target/docker-extras/entrypoint.sh /app/ && \
22-
chmod 0744 /app/entrypoint.sh && \
21+
cp target/docker-extras/rdap-conformance /usr/local/bin/ && \
22+
chmod 0777 /usr/local/bin/rdap-conformance && \
2323
cd / && \
2424
rm -rf /build ${M2_HOME}
2525

@@ -31,4 +31,4 @@ RUN useradd -MrU conformance && \
3131

3232
EXPOSE 8080
3333
USER conformance
34-
ENTRYPOINT ["/app/entrypoint.sh", "/rdap-config/rdap-configuration.json"]
34+
CMD ["rdap-conformance", "/rdap-config/rdap-configuration.json"]

src/main/docker/entrypoint.sh

-5
This file was deleted.

src/main/docker/rdap-conformance

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
echo "Launching conformance test with arguments: $*"
3+
java -jar @project.artifactId@[email protected]@[email protected]@ "$\@"

0 commit comments

Comments
 (0)