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 tgz exporter, fixup tag names #1021

Merged
merged 3 commits into from
Oct 26, 2023
Merged
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
20 changes: 12 additions & 8 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,26 +231,30 @@ ubuntu-current-jedi:
docker tag ubuntu-current-jedi gerbil/jedi:ubuntu

package-ubuntu:
docker run -v $(PWD):/src:z -t gerbil/ubuntu \
docker run -v $(PWD):/src:z -t gerbil/ubuntu:$(arch)-$(BRANCH) \
bash -c "gem install fpm && \
fpm -s dir -p /src/ -t deb -n gerbil-$(GERBIL_VERSION).ubuntu \
--description 'Gerbil Package' /opt/gerbil"
fpm -s dir -p /src/ -t deb -n gerbil-$(BRANCH).ubuntu \
--description 'Gerbil Scheme Package' /opt/gerbil"

package-tgz:
docker run -v $(PWD):/src:z -t gerbil/ubuntu:$(arch)-$(BRANCH) \
bash -c "tar -czvf /src/gerbil.tgz /opt/gerbil"

package-fedora:
docker run -v $(PWD):/src:z -t gerbil/fedora \
docker run -v $(PWD):/src:z -t gerbil/fedora:$(arch)-$(BRANCH) \
bash -c "yum install -y rubygems ruby-devel rpm-build && \
gem install fpm && \
fpm -s dir -p /src/ -t rpm \
-n gerbil-$(GERBIL_VERSION).fedora \
--description 'Gerbil Package' /opt/gerbil"
-n gerbil-$(BRANCH).fedora \
--description 'Gerbil Scheme Package' /opt/gerbil"

package-amazonlinux:
docker run -v $(PWD):/src:z -t gerbil/amazonlinux \
docker run -v $(PWD):/src:z -t gerbil/amazonlinux:$(arch)-$(BRANCH) \
bash -c "amazon-linux-extras install -y ruby2.6 && \
yum install -y ruby-devel rubygems rpm-build && \
gem install fpm && \
fpm -s dir -p /src/ -t rpm \
-n gerbil-$(GERBIL_VERSION).amazonlinux \
-n gerbil-$(BRANCH).amazonlinux \
--description 'Gerbil Package' /opt/gerbil"

packages: package-ubuntu package-fedora
Expand Down
Loading