Skip to content

Commit ed5b4ee

Browse files
committed
update linuxfr-board container to use the board-sse-linuxfr.org gem version 1.0.0
1 parent d659977 commit ed5b4ee

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

deployment/linuxfr-board/Containerfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.title="Board for LinuxFr.org"
44
LABEL org.opencontainers.image.description="Users of the LinuxFr.org website can chat on a space called the board (« la tribune » in french). \
55
This Ruby daemon notifies the users when something is said with Server-Sent Event / EventSource."
66
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/board-sse-linuxfr.org"
7-
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/master/Container.md"
7+
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/board-sse-linuxfr.org"
88
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
99
LABEL org.opencontainers.image.version="ruby3-bookworm"
1010
LABEL org.opencontainers.image.authors="Adrien Dorsaz <[email protected]>"
@@ -18,28 +18,22 @@ RUN \
1818
# Install dependencies \
1919
# and add curl to be used by the healthcheck defined in compose.yaml \
2020
apt-get install -y --no-install-recommends \
21-
build-essential git ruby ruby-dev \
21+
build-essential ruby ruby-dev \
2222
curl; \
2323
apt-get clean;
2424

2525
USER ${UID}
2626
WORKDIR /linuxfr-board
2727
ENV HOME=/linuxfr-board
2828

29-
# Install board-linuxfr
30-
# RUN gem install board-linuxfr -v '~> 0.1.4'
31-
32-
# Temporary build board-linuxfr from sources
33-
RUN git clone https://github.com/linuxfrorg/board-sse-linuxfr.org.git --branch ruby3 \
34-
&& cd board-sse-linuxfr.org \
35-
&& gem build board-linuxfr.gemspec \
36-
&& gem install ./board-linuxfr-*.gem
29+
# Install board-sse-linuxfr.org
30+
RUN gem install board-sse-linuxfr.org -v '~> 1.0.0'
3731

3832
# Clean development dependencies
3933
USER 0
40-
RUN apt-get purge --autoremove -y build-essential git ruby-dev
34+
RUN apt-get purge --autoremove -y build-essential ruby-dev
4135

4236
USER ${UID}
4337
EXPOSE 9000
4438

45-
CMD ["board-linuxfr"]
39+
CMD ["board-sse-linuxfr.org"]

0 commit comments

Comments
 (0)