Skip to content

Commit

Permalink
Add tgz exporter, fixup tag names (mighty-gerbils#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
ober authored and drewc committed Nov 29, 2023
1 parent 31915e9 commit 3a5a16c
Showing 1 changed file with 12 additions and 8 deletions.
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

0 comments on commit 3a5a16c

Please sign in to comment.