Skip to content

Commit

Permalink
update pkgx image
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Oct 21, 2023
1 parent da6dbb1 commit 617c57f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pkgx/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export PS1="\[\033[38;5;63m\]pkgx\[\033[0m\] $ "

eval "$(pkgx --shellcode)" #docs.pkgx.sh/shellcode
11 changes: 8 additions & 3 deletions pkgx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Do not edit this file directly. It is generated by FluentDocker.

FROM homebrew/brew:latest
RUN brew install pkgxdev/made/pkgx
FROM ubuntu:23.04
RUN apt-get update
RUN apt-get install -y curl
RUN curl https://pkgx.sh | sh
COPY .bashrc /root/.bashrc
ENV BASH_ENV=/root/.bashrc
SHELL ["bash", "-c"]
RUN pkgx --version
CMD pkgx
CMD bash -i
11 changes: 8 additions & 3 deletions pkgx/generate.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { Dockerfile } from "https://deno.land/x/[email protected]/mod.ts";

const image = new Dockerfile()
.from("homebrew/brew:latest")
.run("brew install pkgxdev/made/pkgx")
.from("ubuntu:23.04")
.run("apt-get update")
.run("apt-get install -y curl")
.run("curl https://pkgx.sh | sh")
.copy(".bashrc", "/root/.bashrc")
.env("BASH_ENV", "/root/.bashrc")
.shell(["bash", "-c"])
.run("pkgx --version")
.cmd("pkgx");
.cmd("bash -i");

const dockerfile = image.toString();

Expand Down

0 comments on commit 617c57f

Please sign in to comment.