-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from octree-gva/fix/docker-setup
ci: docker build and missing migrations
- Loading branch information
Showing
175 changed files
with
3,894 additions
and
1,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vendor | ||
tmp | ||
.pm2 | ||
.bundle | ||
.DS_Store | ||
storage | ||
Dockerfile* | ||
docker-compose* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1698196301572 | ||
1698228416828 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-3.0.6 | ||
ruby-3.0.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
FROM hfroger/decidim:0.27 as build | ||
FROM hfroger/decidim:0.27 | ||
ENV PM2_RUN="decidim,sidekiq" ROOT="/home/decidim/app" | ||
FROM git.octree.ch:4567/decidim/vocacity/system/decidim-0.27 | ||
ENV PM2_RUN="decidim,sidekiq" \ | ||
ROOT="/home/decidim/app" \ | ||
DECIDIM_VERSION="0.27.5" | ||
|
||
WORKDIR $ROOT | ||
RUN apt-get update -yq \ | ||
# Install native deps | ||
&& apt-get install -yq restic systemd rsyslog wget zip sharutils libicu-dev libpq-dev nginx \ | ||
&& apt-get install -yq nginx \ | ||
# Clean installation clutters | ||
&& apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& truncate -s 0 /var/log/*log \ | ||
&& mkdir -p /etc/jelastic/\ | ||
&& mkdir -p $ROOT/tmp \ | ||
&& cd $ROOT \ | ||
&& npm install -g pm2 \ | ||
&& rm -rf /usr/local/bundle/cache \ | ||
# Add a nginx user | ||
&& useradd -u 1002 -g 1001 -r -s /bin/sh nginx \ | ||
# Configure bundle | ||
&& bundle config set --local path "vendor" \ | ||
&& bundle config set --local with "production" \ | ||
&& bundle config set --local no_cache "true" \ | ||
&& bundle config set --local deployment "true" | ||
&& cd $ROOT \ | ||
&& bundle config set path "vendor" \ | ||
&& bundle config set with "production" \ | ||
&& bundle config set no_cache "true" \ | ||
&& bundle config set deployment "false" \ | ||
&& rm -rf vendor Gemfile.lock | ||
|
||
COPY ./00_mautic_entrypoint.sh /usr/local/share/docker-entrypoint.d/00_mautic_entrypoint.sh | ||
COPY --chown=nginx:decidim ./contrib/nginx/nginx.conf /etc/nginx/nginx.conf | ||
USER decidim | ||
COPY --from=build --chown=decidim:decidim $ROOT $ROOT | ||
COPY ./contrib/01_mautic_entrypoint /usr/local/share/docker-entrypoint.d/01_mautic_entrypoint | ||
COPY --chown=decidim:decidim ./contrib/nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --chown=decidim:decidim . $ROOT | ||
RUN bundle install | ||
|
||
CMD ["pm2-runtime", "start", "/home/decidim/app/config/ecosystem.config.js", "--only", "$PM2_RUN"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM hfroger/decidim:0.27-dev | ||
ENV RAILS_ENV=development \ | ||
NODE_ENV=development \ | ||
ROOT=/home/decidim/app | ||
COPY . $ROOT | ||
|
||
RUN cd $ROOT \ | ||
&& bundle config set without "" \ | ||
&& bundle config set path "vendor" \ | ||
&& bundle install \ | ||
&& npm install -D webpack-dev-server \ | ||
&& npm i | ||
|
||
EXPOSE 3000 | ||
EXPOSE 3035 | ||
|
||
ENTRYPOINT ["bin/docker-entrypoint"] | ||
CMD ["sleep", "infinity"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.