Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ compile_commands.json
gunzip
gzip
zcat
*~
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian:bookworm-slim as stage

RUN apt-get update

RUN apt-get install -y \
wget \
build-essential \
gcc-multilib \
lib32ncurses-dev \
cpio \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /build

COPY . .

RUN wget https://archive.org/download/123-unix/123UNIX1.IMG \
&& wget https://archive.org/download/123-unix/123UNIX2.IMG \
&& wget https://archive.org/download/123-unix/123UNIX3.IMG \
&& wget https://archive.org/download/123-unix/123UNIX4.IMG \
&& wget https://archive.org/download/123-unix/123UNIX5.IMG

RUN ./binutils.sh \
&& ./extract.sh

RUN make install \
&& cd / \
&& rm -rf /build

WORKDIR /work

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,8 @@ See the full [FAQ](https://github.com/taviso/123elf/wiki/FAQ) for more.
- There is limited i18n support (We're working on it, see [#73](https://github.com/taviso/123elf/issues/73)).
- File an issue if you notice something, there are probably lots of minor issues that can be fixed!

## Running the docker-compose image

```
docker compose run -i 123r3
```
9 changes: 9 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
123r3:
build:
context: .
volumes:
- .:/work
stdin_open: true
tty: true
command: "123"