forked from factorysh/docker-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby27.mk
53 lines (46 loc) · 1.45 KB
/
ruby27.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
build-source-2.7: rubies/buster/ruby-$(RUBY27)
rubies/buster/ruby-$(RUBY27):
make -C . tool-buster
make -C . rubies_docker_ignore DOCKER_IGNORE_RUBIES_DEPTH="1" DOCKER_IGNORE_RUBIES_DIR_REV="buster"
docker run --rm \
--volume `pwd`/rubies/buster:/opt/rubies \
ruby-install:buster $(RUBY27) $(USER)
image-2.7: build-source-2.7
make -C . rubies_docker_ignore DOCKER_IGNORE_RUBIES_DIR_REV=$(RUBY27)
docker build \
$(DOCKER_BUILD_ARGS) \
-t bearstech/ruby:2.7 \
-f Dockerfile.ruby-install \
--build-arg DEBIAN_DISTRO=buster \
--build-arg RUBY_VERSION=$(RUBY27) \
.
image-2.7-bullseye:
docker build \
$(DOCKER_BUILD_ARGS) \
-t bearstech/ruby:2.7-bullseye \
-f Dockerfile.apt \
--build-arg DEBIAN_DISTRO=bullseye \
--build-arg RUBY_VERSION=2.7 \
.
image-2.7-dev:
make -C . ignore_all_rubies
docker build \
$(DOCKER_BUILD_ARGS) \
-t bearstech/ruby-dev:2.7 \
-f Dockerfile.ruby-install-dev \
--build-arg RUBY_FROM_TAG=2.7 \
.
image-2.7-dev-bullseye:
docker build \
$(DOCKER_BUILD_ARGS) \
-t bearstech/ruby-dev:2.7-bullseye \
-f Dockerfile.apt-dev \
--build-arg DEBIAN_DISTRO=bullseye \
--build-arg RUBY_VERSION=2.7 \
.
test-2.7: bin/goss
@printf "Handling %s\\n" "test-2.7"
@make -C tests_ruby/test_install_db install tests down RUBY_VERSION=2.7
test-2.7-bullseye: bin/goss
@printf "Handling %s\\n" "test-2.7-bullseye"
@make -C tests_ruby/test_install_db install tests down RUBY_VERSION=2.7-bullseye