File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ [tools ]
2
+ postgres = { install_env = { POSTGRES_SKIP_INITDB = " true" , POSTGRES_EXTRA_CONFIGURE_OPTIONS =" --without-icu" } }
Original file line number Diff line number Diff line change 1
- FROM ghcr.io/code0-tech/build-images/asdf:131.1
2
- SHELL ["/usr/bin/bash" , "-lc" ]
1
+ FROM ghcr.io/code0-tech/build-images/mise:131.1
3
2
4
3
RUN apt-get update && apt-get install \
5
4
build-essential \
@@ -13,10 +12,11 @@ RUN apt-get update && apt-get install \
13
12
libyaml-dev \
14
13
-y
15
14
16
- RUN asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
17
- RUN asdf plugin add postgres https://github.com/smashedtoatoms/asdf-postgres.git
18
-
19
- ARG RUBY_VERSION
20
- RUN asdf install ruby $RUBY_VERSION
21
15
ARG POSTGRES_VERSION
22
- RUN POSTGRES_EXTRA_CONFIGURE_OPTIONS="--without-icu" POSTGRES_SKIP_INITDB=true asdf install postgres $POSTGRES_VERSION
16
+ ARG RUBY_VERSION
17
+ ADD build-images/mise/mise.ruby-postgres.toml ./mise.toml
18
+ RUN mise trust && \
19
+ mise config set tools.postgres.version $POSTGRES_VERSION -t string && \
20
+ mise config set tools.ruby.version $RUBY_VERSION -t string && \
21
+ mise install && \
22
+ rm mise.toml
You can’t perform that action at this time.
0 commit comments