Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitlab/ci/container-boot.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- SAGITTARIUS_VARIANT:
- ce
- ee
- cloud
PLATFORM:
- amd64
- arm64
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/ci/container-build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ container:sagittarius:
- VARIANT:
- ce
- ee
- cloud
PLATFORM:
- amd64
- arm64
Expand All @@ -264,6 +265,7 @@ manifest:sagittarius:
- VARIANT:
- ce
- ee
- cloud
needs:
- generate-environment
- job: container:sagittarius
Expand Down
7 changes: 5 additions & 2 deletions container/sagittarius/Dockerfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ COPY projects/sagittarius/config/ config/
COPY projects/sagittarius/lib/ lib/
COPY projects/sagittarius/db/ db/
COPY projects/sagittarius/app/ app/
<% if ee? %>
<% if ee? || cloud? %>
COPY projects/sagittarius/extensions/ee/app/ extensions/ee/app/
<% end %>
<% if cloud? %>
COPY projects/sagittarius/extensions/cloud/app/ extensions/cloud/app/
<% end %>

# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/ <% if ee? %>extensions/ee/app/<% end %>
RUN bundle exec bootsnap precompile app/ lib/ <% if ee? || cloud? %>extensions/ee/app/<% end %> <% if cloud? %>extensions/cloud/app/<% end %>

ARG RETICULUM_IMAGE_TAG=local
RUN echo "$RETICULUM_IMAGE_TAG" > VERSION
Expand Down
4 changes: 4 additions & 0 deletions container/sagittarius/renderDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ def ee?
ENV['VARIANT'].eql?('ee')
end

def cloud?
ENV['VARIANT'].eql?('cloud')
end

template = ERB.new(File.read("#{__dir__}/Dockerfile.erb"), trim_mode: '-')
File.write("#{__dir__}/Dockerfile", template.result)