linuxserver / docker-thelounge

GNU General Public License v3.0
25 stars 7 forks source link

Support Master Branch #31

Closed ghost closed 3 years ago

ghost commented 4 years ago

Would it be possible to support a tag on Docker Hub for the master branch of TheLounge?

Here's an example Dockerfile:

FROM node:12-alpine

WORKDIR /opt/thelounge

ENV BUILD_TIMESTAMP=$(date +%s)

RUN apk --no-cache add \
    git

# needed to create merge commits
RUN git config --global user.name "Docker" && \
    git config --global user.email "docker@local.docker"

ENV THELOUNGE_HOME /var/opt/thelounge
VOLUME "${THELOUNGE_HOME}"

# commit SHA, branch, tag, etc.
ARG GIT_REVISION=master
# comma separated list of PRs to try and merge into $GIT_REVISION, will fail silently and continue if automatic merge fails
ARG PULL_REQUESTS=

RUN git clone https://github.com/thelounge/thelounge.git . && \
    git checkout "$GIT_REVISION"

# merge all (optional) pull requests
RUN \
for pr in $(echo $PULL_REQUESTS | tr ',' '\n'); do \
    git fetch origin "refs/pull/$pr/head" && (git merge --no-edit --no-ff FETCH_HEAD || git merge --abort); \
done; \
rm -rf node_modules

RUN yarn && \
    NODE_ENV=production yarn build && \
    yarn install --production && \
    yarn link

ENV NODE_ENV=production

# expose the default port
EXPOSE 9000

CMD ["thelounge", "start"]

Source: https://github.com/williamboman/thelounge-docker-from-source/blob/master/Dockerfile

The master branch is not considered stable always, but it usually is. It's a great way to preview upcoming release features, for sure. It's what runs on the main TheLounge demo site, I believe.

Not sure if supporting something like this is outside of the scope of what linuxserver.io provides, but would be neat.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ghost commented 3 years ago

:/