Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1502 from snyk/smoke/docker-root
test(smoke): scenario where root user installing Snyk
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:12 | ||
|
||
COPY ./smoke/ /snyk/smoke/ | ||
COPY ./fixtures/ /snyk/fixtures/ | ||
|
||
RUN apt-get update && apt-get install -y curl jq | ||
RUN curl -fsSL https://git.io/shellspec | sh -s -- --yes | ||
ENV PATH="/root/.local/bin:${PATH}" | ||
|
||
WORKDIR /snyk/smoke/ | ||
|
||
ENTRYPOINT [ "./docker-root/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
echo "Install Snyk CLI with npm" | ||
npm install snyk -g | ||
snyk --version | ||
|
||
export EXPECTED_SNYK_VERSION=$(snyk --version) | ||
|
||
shellspec -f d |