integration-test/kubernetes-dns/build.sbt (14 lines of code) (raw):

/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ import com.typesafe.sbt.packager.docker._ enablePlugins(JavaServerAppPackaging) version := "1.3.3.7" // we hard-code the version here, it could be anything really dockerCommands := dockerCommands.value.flatMap { case ExecCmd("ENTRYPOINT", args @ _*) => Seq(Cmd("ENTRYPOINT", args.mkString(" "))) case v => Seq(v) } dockerExposedPorts := Seq(8080, 7626, 7355) dockerBaseImage := "openjdk:8-jre-alpine" dockerCommands ++= Seq( Cmd("USER", "root"), Cmd("RUN", "/sbin/apk", "add", "--no-cache", "bash", "bind-tools", "busybox-extras", "curl", "strace"), Cmd("RUN", "chgrp -R 0 . && chmod -R g=u ."))