Skip to content

Commit

Permalink
fix: move back to custom docker and add python to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KP2048 committed Feb 19, 2023
1 parent 12e1360 commit 64edcbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:18-alpine

RUN apk add --no-cache rsync
RUN apk add --no-cache rsync python3 py3-pip

RUN npm i --location=global pnpm

Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function build(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
} else throw new Error('podman or builder not found')

//pull builder images
child_process.execSync(`${container} pull ghcr.io/steamdeckhomebrew/builder:latest`)
child_process.execSync(`${container} pull ghcr.io/emudeck/builder:latest`)
child_process.execSync(`${container} pull ghcr.io/steamdeckhomebrew/holo-base:latest`)

//backend
Expand Down Expand Up @@ -164,7 +164,7 @@ function build(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
console.log(`Plugin ${plugin.name} does not have a backend`)
}
//frontend
child_process.execSync(`${container} run --rm -i -e RELEASE_TYPE="${args.dev ? 'development':'production'}" -v "${process.cwd()}":/plugin -v "${path.join(process.cwd(), 'build', plugin.name)}":/out ghcr.io/steamdeckhomebrew/builder:latest`)
child_process.execSync(`${container} run --rm -i -e RELEASE_TYPE="${args.dev ? 'development':'production'}" -v "${process.cwd()}":/plugin -v "${path.join(process.cwd(), 'build', plugin.name)}":/out ghcr.io/emudeck/builder:latest`)
console.log(` Built ${plugin.name} frontend`)

//zip
Expand Down Expand Up @@ -265,7 +265,7 @@ function _package(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
} else throw new Error('podman or builder not found')

//pull builder images
child_process.execSync(`${container} pull ghcr.io/steamdeckhomebrew/builder:latest`)
child_process.execSync(`${container} pull ghcr.io/emudeck/builder:latest`)
child_process.execSync(`${container} pull ghcr.io/steamdeckhomebrew/holo-base:latest`)

//backend
Expand Down Expand Up @@ -319,7 +319,7 @@ function _package(args: yargs.ArgumentsCamelCase<{ dev: boolean }>)
console.log(`Plugin ${plugin.name} does not have a backend`)
}
//frontend
child_process.execSync(`${container} run --rm -i -e RELEASE_TYPE="${args.dev ? 'development':'production'}" -v "${process.cwd()}":/plugin -v "${path.join(process.cwd(), 'build', plugin.name)}":/out ghcr.io/steamdeckhomebrew/builder:latest`)
child_process.execSync(`${container} run --rm -i -e RELEASE_TYPE="${args.dev ? 'development':'production'}" -v "${process.cwd()}":/plugin -v "${path.join(process.cwd(), 'build', plugin.name)}":/out ghcr.io/emudeck/builder:latest`)
console.log(` Built ${plugin.name} frontend`)

//zip
Expand Down

0 comments on commit 64edcbb

Please sign in to comment.