Skip to content

Commit

Permalink
update c2id/c2id-server-demo docker image to support ARM (#91144) (#9…
Browse files Browse the repository at this point in the history
…1292)

This commit updates the c2id docker image to the latest released version.
This commit also introduces a multi-stage build with the openjdk image that
supports ARM architectures. So our oidc tests now supports multiple archtectures.

related: #89526
part of: #71378
  • Loading branch information
jakelandis authored Nov 3, 2022
1 parent c4e9b40 commit 728c671
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
7 changes: 0 additions & 7 deletions x-pack/qa/oidc-op-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.elasticsearch.gradle.Architecture

apply plugin: 'elasticsearch.internal-java-rest-test'
apply plugin: 'elasticsearch.test.fixtures'

Expand All @@ -17,8 +15,3 @@ tasks.named("processJavaRestTestResources").configure {
'src/test/resources/org/elasticsearch/xpack/security/transport/ssl/certs/simple/testnode_ec.crt'
)
}

tasks.named("javaRestTest").configure {
// OpenID Connect fixture does not support aarm64
onlyIf { Architecture.current() == Architecture.X64 }
}
4 changes: 3 additions & 1 deletion x-pack/test/idp-fixture/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ services:
- ./idp/shib-jetty-base/start.d/ssl.ini:/opt/shib-jetty-base/start.d/ssl.ini

oidc-provider:
image: "c2id/c2id-server-demo:12.16.1"
build:
context: .
dockerfile: ./oidc/Dockerfile
depends_on:
- http-proxy
ports:
Expand Down
9 changes: 9 additions & 0 deletions x-pack/test/idp-fixture/oidc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM c2id/c2id-server-demo:12.18 AS c2id
FROM openjdk:11.0.16-jre

COPY --from=c2id /c2id-server /c2id-server
COPY --from=c2id /etc/c2id /etc/c2id

ENV CATALINA_OPTS="-DsystemPropertiesURL=file:///etc/c2id/override.properties"
EXPOSE 8080
CMD ["/bin/bash", "/c2id-server/tomcat/bin/catalina.sh", "run"]

0 comments on commit 728c671

Please sign in to comment.