-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build docker container in a self-contained fashion This is prompted by various issues around our handling of arguments and how this clashes with -- and -D argument handling by both sbt-pack and sbt-native-packager Instead, we build scip-java entirely inside the docker container and point `scip-java` command directly at the jar, to exclude any possibility of weirdness introduced by launcher scripts. Additionally, this allows anyone to build a docker container without having JVM and SBT installed. * Update coursier launcher version and remove unnecessary architecture override
- Loading branch information
Showing
7 changed files
with
101 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
*.class | ||
*.log | ||
|
||
# sbt specific | ||
.cache | ||
.history | ||
.lib/ | ||
dist/* | ||
target/ | ||
lib_managed/ | ||
src_managed/ | ||
project/boot/ | ||
project/plugins/project/ | ||
.bloop | ||
|
||
_site/ | ||
|
||
# Scala-IDE specific | ||
.scala_dependencies | ||
.worksheet | ||
|
||
.idea | ||
|
||
# ENSIME specific | ||
.ensime_cache/ | ||
.ensime | ||
|
||
.metals/ | ||
metals.sbt | ||
metals/project/ | ||
|
||
.bsp | ||
|
||
.vscode/ | ||
|
||
local.* | ||
|
||
.DS_Store | ||
|
||
node_modules | ||
|
||
lib/core/metadata.js | ||
lib/core/MetadataBlog.js | ||
|
||
website/translated_docs | ||
website/build/ | ||
website/yarn.lock | ||
website/node_modules | ||
website/i18n/* | ||
|
||
project/metals.sbt | ||
out/ | ||
*.hnir | ||
test-report.json | ||
index.scip | ||
|
||
./generated | ||
/sources | ||
bazel-bin | ||
bazel-scip-java | ||
bazel-out | ||
bazel-testlogs | ||
bazel-lsif-java | ||
|
||
VERSION | ||
|
||
semanticdb-gradle-plugin/gradle | ||
aspects/scip_java.bzl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM eclipse-temurin:17 | ||
|
||
RUN apt-get update && apt-get install --yes jq wget curl zip unzip git python3 python3-pip autoconf automake libtool build-essential libtool make g++ | ||
|
||
WORKDIR /workdir | ||
|
||
COPY ./bin/docker-setup.sh . | ||
RUN ./docker-setup.sh | ||
|
||
|
||
ENV PATH=/opt/maven/bin:${PATH} | ||
ENV PATH=/opt/gradle/bin:${PATH} | ||
ENV PATH=/root/.local/share/coursier/bin:${PATH} | ||
|
||
ENV JAVA_TOOL_OPTIONS="-XX:MaxRAMPercentage=80.0 -XX:+UseContainerSupport" | ||
RUN git config --global --add safe.directory * | ||
|
||
COPY . . | ||
|
||
RUN sbt publishLocal dumpScipJavaVersion | ||
RUN mkdir -p /app && coursier bootstrap "com.sourcegraph:scip-java_2.13:$(cat VERSION)" -f -o /app/scip-java -M com.sourcegraph.scip_java.ScipJava | ||
|
||
COPY ./bin/scip-java-docker-script.sh /usr/bin/scip-java | ||
|
||
WORKDIR /sources | ||
|
||
RUN rm -rf /workdir |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters