Open CodeLionX opened 6 years ago
Building the docker image works ok on my machine, probably because the actual version of the base image is different.
[info] Step 1/4 : FROM anapsix/alpine-java:8_jdk
[info] ---> 46796749789c
[info] Step 2/4 : RUN ["apk", "add", "--update", "bash", "libc6-compat"]
[info] ---> Using cache
[info] ---> 1a97c1332bb9
[info] Step 3/4 : ENTRYPOINT ["\/app\/bin\/scalafiddle-core"]
[info] ---> Using cache
[info] ---> 1af2ff1252ae
[info] Step 4/4 : COPY 0/stage /app
[info] ---> 13101283aa6e
[info] Successfully built 13101283aa6e
How can I find out what version of the base image is used by docker?
It pulled the image for anapsix/alpine-java:8_jdk
directly from docker-hub...
In your docker-output, docker is using the cache for step 2, I can't use the cache, because it wasn't build on my machine yet. Does it work for you if you are clearing the cache before, so that docker is forced to rebuild all layers?
I'm unable to build the docker images for scalafiddle-core of the current
master
-branch. The commandsbt docker
failes for both modules router and compileServer at updatinglibc6-compat
in the docker image. See the error message below.However, removing this step from the "Dockerfile" leads to a successful build. Execution via
docker-compose
with the configuration from scalafiddle-io/docker-compose.yml seems also successful after removing those lines.Error Message:
How to reproduce:
master
(commit hash 31816bc)sbt docker
Client info:
Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:12:29 2017 OS/Arch: linux/amd64 Experimental: true
[info] This is sbt 0.13.16 [info] The current project is {file:/Users//scalafiddle-core/}root 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.6
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin, org.scalajs.jsdependencies.sbtplugin.JSDependenciesPlugin, org.scalajs.sbtplugin.ScalaJSJUnitPlugin, org.scalajs.sbtplugin.ScalaJSPlugin, org.scalajs.sbtplugin.internal.ScalaJSGlobalPlugin, com.typesafe.sbt.SbtNativePackager, com.typesafe.sbt.packager.archetypes.JavaAppPackaging, com.typesafe.sbt.packager.archetypes.JavaServerAppPackaging, com.typesafe.sbt.packager.archetypes.jar.ClasspathJarPlugin, com.typesafe.sbt.packager.archetypes.jar.LauncherJarPlugin, com.typesafe.sbt.packager.archetypes.scripts.AshScriptPlugin, com.typesafe.sbt.packager.archetypes.scripts.BashStartScriptPlugin, com.typesafe.sbt.packager.archetypes.scripts.BatStartScriptPlugin, com.typesafe.sbt.packager.archetypes.systemloader.SystemVPlugin, com.typesafe.sbt.packager.archetypes.systemloader.SystemdPlugin, com.typesafe.sbt.packager.archetypes.systemloader.SystemloaderPlugin, com.typesafe.sbt.packager.archetypes.systemloader.UpstartPlugin, com.typesafe.sbt.packager.debian.DebianDeployPlugin, com.typesafe.sbt.packager.debian.DebianPlugin, com.typesafe.sbt.packager.debian.JDebPackaging, com.typesafe.sbt.packager.docker.DockerPlugin, com.typesafe.sbt.packager.docker.DockerSpotifyClientPlugin, com.typesafe.sbt.packager.jdkpackager.JDKPackagerDeployPlugin, com.typesafe.sbt.packager.jdkpackager.JDKPackagerPlugin, com.typesafe.sbt.packager.linux.LinuxPlugin, com.typesafe.sbt.packager.rpm.RpmDeployPlugin, com.typesafe.sbt.packager.rpm.RpmPlugin, com.typesafe.sbt.packager.universal.UniversalDeployPlugin, com.typesafe.sbt.packager.universal.UniversalPlugin, com.typesafe.sbt.packager.windows.WindowsDeployPlugin, com.typesafe.sbt.packager.windows.WindowsPlugin, sbtdocker.DockerPlugin, spray.revolver.RevolverPlugin, com.lucidchart.sbt.scalafmt.ScalafmtCorePlugin, com.lucidchart.sbt.scalafmt.ScalafmtPlugin, com.lucidchart.sbt.scalafmt.ScalafmtSbtPlugin, com.timushev.sbt.updates.UpdatesPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.6