This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
simple-build-test/nginx-build Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11services :
22 simple :
3- image : busybox:1.31.0-uclibc
3+ image : alpine
44 command : sh -c "sleep 5"
55 another :
6- image : busybox:1.31.0-uclibc
6+ image : alpine
77 command : sh -c "sleep 0.1 && echo world && /bin/false"
88 deploy :
99 restart_policy :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM nginx
15+ FROM nginx:alpine
1616
1717ARG FOO
1818LABEL FOO=$FOO
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM nginx
15+ FROM nginx:alpine
1616
1717COPY static2 /usr/share/nginx/html
Original file line number Diff line number Diff line change 11services :
22 should_fail :
3- image : busybox:1.27.2
3+ image : alpine
44 command : ls /does_not_exist
55 sleep : # will be killed
6- image : busybox:1.27.2
6+ image : alpine
77 command : ping localhost
Original file line number Diff line number Diff line change 11services :
22 service :
3- image : busybox
3+ image : alpine
44 command : top
55 ipc : " service:shareable"
66 container :
7- image : busybox
7+ image : alpine
88 command : top
99 ipc : " container:ipc_mode_container"
1010 shareable :
11- image : busybox
11+ image : alpine
1212 command : top
1313 ipc : shareable
Original file line number Diff line number Diff line change 11services :
22 ping :
3- image : busybox:1.27.2
3+ image : alpine
44 command : ping localhost -c 1
55 hello :
6- image : busybox:1.31.0-uclibc
6+ image : alpine
77 command : echo hello
Original file line number Diff line number Diff line change 11services :
22 mydb :
3- image : mysql
3+ image : mariadb
44 network_mode : " service:db"
55 environment :
66 - MYSQL_ALLOW_EMPTY_PASSWORD=yes
Original file line number Diff line number Diff line change 11services :
22 restart :
3- image : busybox
3+ image : alpine
44 command : ash -c "if [[ -f /tmp/restart.lock ]] ; then sleep infinity; else touch /tmp/restart.lock; fi"
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ services:
88 networks :
99 - backnet
1010 db :
11- image : nginx
11+ image : nginx:alpine
1212 networks :
1313 - backnet
1414 volumes :
1515 - data:/test
1616 front :
17- image : nginx
17+ image : nginx:alpine
1818 networks :
1919 - frontnet
2020networks :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM nginx
15+ FROM nginx:alpine
1616
1717ARG FOO
1818LABEL FOO=$FOO
You can’t perform that action at this time.
0 commit comments