3
3
![ Build Status] ( https://github.com/ufoscout/docker-compose-wait/actions/workflows/build_and_test.yml/badge.svg )
4
4
[ ![ codecov] ( https://codecov.io/gh/ufoscout/docker-compose-wait/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ufoscout/docker-compose-wait )
5
5
6
- A small command-line utility to wait for other docker images to be started while using docker-compose.
6
+ A small command-line utility to wait for other docker images to be started while using docker-compose (or Kubernetes or docker stack or whatever) .
7
7
8
8
It permits waiting for:
9
9
- a fixed amount of seconds
@@ -21,7 +21,8 @@ For example, your application "MySuperApp" uses MongoDB, Postgres and MySql (wow
21
21
FROM alpine
22
22
23
23
# # Add the wait script to the image
24
- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.10.0/wait /wait
24
+ # # This is the default executable for the x86_64 architecture, other architectures are supported too
25
+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.11.0/wait /wait
25
26
RUN chmod +x /wait
26
27
27
28
# # Add your application to the docker image
@@ -81,7 +82,7 @@ When using [distroless](https://github.com/GoogleContainerTools/distroless) or b
81
82
82
83
` ` ` dockerfile
83
84
FROM golang
84
- RUN wget -o /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.10.0 /wait
85
+ RUN wget -o /wait https://github.com/ufoscout/docker-compose-wait/releases/download/{{VERSION}} /wait
85
86
COPY myApp /app
86
87
WORKDIR /app
87
88
RUN go build -o /myApp -ldflags '-s -w -extldflags -static' ./...
@@ -107,16 +108,27 @@ The behaviour of the wait utility can be configured with the following environme
107
108
- _WAIT_AFTER_ : number of seconds to wait (sleep) once all the hosts/paths are available
108
109
- _WAIT_SLEEP_INTERVAL_ : number of seconds to sleep between retries. The default is 1 second.
109
110
111
+ # # Supported architectures
112
+
113
+ From release 2.11.0, the following executables are available for download :
114
+ - _wait_ : This is the executable intended for Linux x64 systems
115
+ - *wait_x86_64*: This is the very same executable than _wait_
116
+ - *wait_aarch64*: This is the executable to be used for aarch64 architectures
117
+ - *wait_arm7*: This is the executable to be used for arm7 architectures
118
+
119
+ All executables are built with [MUSL](https://www.musl-libc.org/) for maximum portability.
120
+
121
+ To use any of these executables, simply replace the executable name in the download link :
122
+ https://github.com/ufoscout/docker-compose-wait/releases/download/{{VERSION}}/{{executable_name}}
123
+
124
+
110
125
# # Using on non-linux systems
111
126
112
127
The simplest way of getting the _wait_ executable is to download it from
113
128
114
129
[https://github.com/ufoscout/docker-compose-wait/releases/download/{{VERSION}}/wait](https://github.com/ufoscout/docker-compose-wait/releases/download/{{VERSION}}/wait)
115
130
116
- This is a pre-built executable for Linux x64 systems which are the default ones in Docker.
117
- In addition, it is built with [MUSL](https://www.musl-libc.org/) for maximum portability.
118
-
119
- If you need it for a different architecture, you should clone this repository and build it for your target.
131
+ If you need it for an architecture for which a pre-built file is not available, you should clone this repository and build it for your target.
120
132
121
133
As it has no external dependencies, an being written in the mighty [rust](https://www.rust-lang.org)
122
134
programming language, the build process is just a simple `cargo build --release`
0 commit comments