mirror of
https://gitlab.gnome.org/jpu/cambalache.git
synced 2025-08-19 00:03:34 -04:00
Dockerfile: Add docker image recipe.
This commit is contained in:
parent
239c16221d
commit
f8bc950397
37
Dockerfile
Normal file
37
Dockerfile
Normal file
@ -0,0 +1,37 @@
|
||||
FROM debian:sid-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3-gi \
|
||||
gir1.2-gtk-3.0 \
|
||||
gir1.2-gtk-4.0 \
|
||||
gir1.2-gtksource-4 \
|
||||
gir1.2-handy-1 \
|
||||
gir1.2-adw-1 \
|
||||
gir1.2-webkit2-4.1 \
|
||||
gir1.2-webkit-6.0 \
|
||||
python3-lxml \
|
||||
meson \
|
||||
ninja-build \
|
||||
libgtk-3-dev \
|
||||
libgtk-4-dev \
|
||||
libhandy-1-dev \
|
||||
libadwaita-1-dev \
|
||||
gettext \
|
||||
desktop-file-utils
|
||||
|
||||
RUN useradd -ms /bin/bash discepolo
|
||||
ENV DISPLAY :0
|
||||
|
||||
RUN mkdir -p /src/build
|
||||
|
||||
COPY . /src/
|
||||
WORKDIR /src/build
|
||||
|
||||
RUN meson --prefix=/usr
|
||||
RUN ninja
|
||||
RUN ninja install
|
||||
|
||||
RUN rm -rf /src
|
||||
|
||||
USER discepolo
|
||||
ENTRYPOINT ["/bin/sh", "-c", "$0 \"$@\"", "cambalache"]
|
16
README.mac.md
Normal file
16
README.mac.md
Normal file
@ -0,0 +1,16 @@
|
||||
## README Mac OS
|
||||
|
||||
There is an on going effort to run Cambalache using dependencies from mac port.
|
||||
See issue [#161](https://gitlab.gnome.org/jpu/cambalache/-/issues/161)
|
||||
|
||||
In the mean time you can run Cambalache building a docker image and installing
|
||||
a X server.
|
||||
|
||||
Steps:
|
||||
- Install [Docker](https://www.docker.com/) and [Xquarts](https://www.xquartz.org/)
|
||||
- Build cambalache docker image
|
||||
- `docker build -t cambalache .`
|
||||
- Make sure docker can connect to the server
|
||||
- `xhost +localhost`
|
||||
- Run docker image
|
||||
- `docker run -e DISPLAY=host.docker.internal:0 cambalache`
|
24
README.md
24
README.md
@ -92,9 +92,29 @@ export PYTHONPATH=~/.local/lib/python3/dist-packages/
|
||||
export GI_TYPELIB_PATH=~/.local/lib/x86_64-linux-gnu/girepository-1.0/
|
||||
```
|
||||
|
||||
## Using in MS Windows
|
||||
## Docker
|
||||
|
||||
Instructions to run Cambalache in MS Windows are [here](README_MS_Windows.md)
|
||||
While docker is not meant for UI applications it is possible to build an image
|
||||
with Cambalache and run it.
|
||||
|
||||
Build the image with:
|
||||
```
|
||||
docker build -t cambalache .
|
||||
```
|
||||
|
||||
On linux, enable localhost connections to your X server and run with:
|
||||
```
|
||||
xhost +local:
|
||||
docker run -v /tmp/.X11-unix:/tmp/.X11-unix cambalache
|
||||
```
|
||||
|
||||
## MS Windows
|
||||
|
||||
Instructions to run in MS Windows are [here](README.win.md)
|
||||
|
||||
## MacOS
|
||||
|
||||
Instructions to run in MacOS are [here](README.mac.md)
|
||||
|
||||
## Contributing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user