Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile and configuration files #1

Merged
merged 24 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3b6906f
Add Apache configuration file
stephdl Dec 14, 2023
150014f
Add cronie configuration file
stephdl Dec 14, 2023
4845435
Add Dockerfile for building and running the application
stephdl Dec 14, 2023
d7df657
Add event listener configuration file
stephdl Dec 14, 2023
95bd5ae
Add event listener script
stephdl Dec 14, 2023
de1408d
Add httpd configuration
stephdl Dec 14, 2023
73c23b4
Add sogod.ini configuration file
stephdl Dec 14, 2023
90cd205
Add memcached configuration file
stephdl Dec 14, 2023
619ae4d
Update readme for the container
stephdl Dec 14, 2023
5013400
Add license file
stephdl Dec 14, 2023
8eb2970
Add SOGo server container based on Archlinux
stephdl Dec 14, 2023
dd362c7
Remove unused files and configurations
stephdl Dec 14, 2023
d8b3c2a
Change container name from webtop-webapp to sogo-server
stephdl Dec 15, 2023
4627feb
Fix typo in license file
stephdl Dec 15, 2023
d935da9
Build without git, use curl instead
stephdl Dec 18, 2023
545f4ce
Update archlinux_version in build-images.sh
stephdl Dec 18, 2023
0f0f412
Remove git package and clean up dependencies
stephdl Dec 18, 2023
d07d425
Remove unnecessary files and directories in build script
stephdl Dec 18, 2023
8b8fa76
Removed unused rm command
stephdl Dec 18, 2023
9869696
Revert "Build without git, use curl instead"
stephdl Dec 18, 2023
ad93556
Add link to libwbxml in README.md
stephdl Dec 18, 2023
0a2a469
Update build-images.sh script with new SOGO and SOPE versions
stephdl Dec 18, 2023
3130e23
Update build-images.sh script with new environment variables
stephdl Dec 18, 2023
9331e7c
code review of Davide Principi
stephdl Dec 18, 2023
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
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM archlinux:latest
ENV LD_PRELOAD=/usr/lib/libytnef.so
RUN pacman --noconfirm --needed -Syu && pacman --noconfirm --needed -S base-devel git supervisor apache zip inetutils libsodium libzip libytnef cronie && yes | pacman -Sccq && \
sed 's/.*MAKEFLAGS=.*/MAKEFLAGS="-j$(nproc)"/' -i /etc/makepkg.conf && sed 's/^# \(%wheel.*NOPASSWD.*\)/\1/' -i /etc/sudoers && useradd -r build -G wheel && mkdir /build

WORKDIR /build
RUN git clone --depth 1 https://aur.archlinux.org/libwbxml.git && chown -R build ./libwbxml
WORKDIR /build/libwbxml
RUN sudo -u build makepkg -is --noconfirm && rm -rf /build/libwbxml && yes | pacman -Sccq

WORKDIR /build
RUN git clone --depth 1 https://aur.archlinux.org/sope.git && chown -R build ./sope
WORKDIR /build/sope
RUN sudo -u build makepkg -is --noconfirm && rm -rf /build/sope && yes | pacman -Sccq

WORKDIR /build
RUN git clone --depth 1 https://aur.archlinux.org/sogo.git && chown -R build ./sogo
stephdl marked this conversation as resolved.
Show resolved Hide resolved
WORKDIR /build/sogo
RUN sudo -u build makepkg -is --noconfirm && rm -rf /build/sogo && yes | pacman -Sccq


COPY httpd.conf /etc/httpd/conf/httpd.conf
COPY event_listener.ini /etc/supervisor.d/event_listener.ini
COPY event_listener.sh /usr/local/bin/event_listener.sh
RUN chmod +x /usr/local/bin/event_listener.sh
RUN mkdir /var/run/sogo && chown sogo:sogo /var/run/sogo
RUN mkdir /var/spool/sogo && chown sogo:sogo /var/spool/sogo
COPY sogod.ini /etc/supervisor.d/sogod.ini
COPY apache.ini /etc/supervisor.d/apache.ini
COPY cronie.ini /etc/supervisor.d/cronie.ini
COPY memcached.ini /etc/supervisor.d/memcached.ini

# clean up
RUN pacman --noconfirm -Rcns base-devel git && yes | pacman -Sccq && rm -rf /tmp/* /var/tmp/* /var/cache/pacman/pkg/*


WORKDIR /
CMD ["/usr/sbin/supervisord", "--nodaemon"]
EXPOSE 20000 20001
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ works, such as semiconductor masks.
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.

To "modify" a work means to copy from or adapt all or part of the work
To "modify" a work means tocopy from or adapt all or part of the work
DavidePrincipi marked this conversation as resolved.
Show resolved Hide resolved
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
Expand Down
Loading
Loading