You've already forked oscript-images
mirror of
https://github.com/pravets/oscript-images.git
synced 2025-10-08 23:01:52 +02:00
Add CMD --help to stebi Dockerfile and simplify test
Co-authored-by: pravets <24823089+pravets@users.noreply.github.com>
This commit is contained in:
@@ -9,3 +9,4 @@ LABEL maintainer="Iosif Pravets <i@pravets.ru>"
|
|||||||
RUN opm i stebi;
|
RUN opm i stebi;
|
||||||
|
|
||||||
ENTRYPOINT ["stebi"]
|
ENTRYPOINT ["stebi"]
|
||||||
|
CMD ["--help"]
|
||||||
|
@@ -22,7 +22,7 @@ test_stebi_is_running() {
|
|||||||
local expected actual
|
local expected actual
|
||||||
|
|
||||||
expected="Приложение: stebi"
|
expected="Приложение: stebi"
|
||||||
actual=$(docker run --rm ${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/stebi:latest --help 2>/dev/null | head -n1)
|
actual=$(docker run --rm ${DOCKER_REGISTRY_URL}/${DOCKER_LOGIN}/stebi:latest 2>/dev/null | head -n1)
|
||||||
|
|
||||||
if assert_eq "$expected" "$actual"; then
|
if assert_eq "$expected" "$actual"; then
|
||||||
log_success "stebi is running test passed"
|
log_success "stebi is running test passed"
|
||||||
|
Reference in New Issue
Block a user