Skip to main content

AwesomeWM - Docker pro awesome development

Building s Docker Ubuntu Image (jednoduché použití v arch linuxu)

copy
# Install docker.io or podman, somehow
# apt/dnf/zipper/pacman/emerge/something

# Create a build dir
mkdir ~/awesome_builder; cd ~/awesome_builder

# Get the source
git clone https://github.com/awesomewm/awesome

# Same as the CI, so hopefully same outcome
cat > Dockerfile << EOF
FROM ubuntu:20.04

RUN sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
RUN apt update -y
RUN DEBIAN_FRONTEND=noninteractive apt build-dep awesome -y --no-install-recommends
RUN DEBIAN_FRONTEND=noninteractive apt install libxcb-xfixes0-dev \
    librsvg2-common -y --no-install-recommends

CMD mkdir /awesome/build -p && \
    cd /awesome/build && \
    cmake .. && \
    make -j2
EOF

# Build the container
docker build . -t awesome_builder

# Build awesome
docker run -ti --rm -v $PWD/awesome:/awesome awesome_builder

# Open in Firefox (or Chrome, whatever you use)
firefox awesome/build/doc/index.html

Můžete upravit ~/awesome_builder/awesomekód, to je to, co kontejner použije. Pokaždé, když chcete aktualizovat dokument, spusťte docker run -ti --rm -v $HOME/awesome_builder/awesome:/awesome awesome_builderznovu.