Skip to content

Commit

Permalink
use fluentci-io images
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Oct 26, 2023
1 parent 53232c5 commit 25baa07
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,58 +11,7 @@ export const execLane = async (name: string, src = ".") => {
const baseCtr = client
.pipeline(Job.execLane)
.container()
.from("ghcr.io/fluentci-io/pkgx:latest")
.withExec(["apt-get", "update"])
.withExec([
"apt-get",
"install",
"-y",
"build-essential",
"ruby",
"ruby-dev",
])
.withExec(["pkgx", "install", "bun", "node", "unzip", "rtx", "wget"])
.withExec([
"wget",
"https://github.com/facebook/watchman/releases/download/v2023.10.23.00/watchman-v2023.10.23.00-linux.zip",
])
.withExec(["unzip", "watchman-v2023.10.23.00-linux.zip"])
.withExec([
"sh",
"-c",
"cp watchman-v2023.10.23.00-linux/bin/* /usr/local/bin/",
])
.withExec([
"sh",
"-c",
"cp watchman-v2023.10.23.00-linux/lib/* /usr/local/lib/",
])
.withExec(["sh", "-c", "echo 'eval $(rtx activate bash)' >> ~/.bashrc"])
.withExec(["rtx", "global", "java@zulu-17.46.19"])
.withEnvVariable(
"JAVA_HOME",
"/root/.local/share/rtx/installs/java/zulu-17.46.19"
)
.withEnvVariable("PATH", "$PATH:$JAVA_HOME/bin", { expand: true })
.withExec(["rtx", "install", "java@zulu-17.46.19"])
.withExec(["gem", "install", "bundler"])
.withEnvVariable("ANDROID_HOME", "/root/android-sdk")
.withExec([
"sh",
"-c",
"mkdir -p $ANDROID_HOME && wget --output-document=$ANDROID_HOME/cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip",
])
.withExec([
"sh",
"-c",
"cd $ANDROID_HOME && rm -rf cmdline-tools && unzip -d cmdline-tools cmdline-tools.zip && mv cmdline-tools/cmdline-tools cmdline-tools/latest",
])
.withEnvVariable("PATH", "$PATH:$ANDROID_HOME/cmdline-tools/latest/bin", {
expand: true,
})
.withExec(["sdkmanager", "--version"])
.withExec(["sdkmanager", "platforms;android-33"])
.withExec(["sh", "-c", "yes | sdkmanager --licenses"]);
.from("ghcr.io/fluentci-io/fastlane:latest");

const ctr = withEnv(withSrc(baseCtr, client, context))
.withEnvVariable("NODE_OPTIONS", "--max-old-space-size=4096")
Expand Down

0 comments on commit 25baa07

Please sign in to comment.