-
Notifications
You must be signed in to change notification settings - Fork 18
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 #17 from etopeter/awk-compliance
Awk compliance
- Loading branch information
Showing
5 changed files
with
272 additions
and
40 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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
FROM bats/bats | ||
FROM ubuntu:16.04 | ||
|
||
RUN apk add --no-cache bc | ||
RUN apt-get update && apt-get install -yq gawk mawk original-awk | ||
|
||
# Install Bats | ||
ADD https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz /tmp/v0.4.0.tar.gz | ||
|
||
RUN tar -x -z -f "/tmp/v0.4.0.tar.gz" -C /tmp/ && \ | ||
bash "/tmp/bats-0.4.0/install.sh" /usr/local && \ | ||
rm -rf /tmp/* | ||
|
||
ENTRYPOINT ["bash", "/usr/local/bin/bats"] |
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,7 @@ | ||
function awk() { | ||
/usr/bin/$VIEW_UTILIZATION_AWK "$@" | ||
} | ||
|
||
function use_awk() { | ||
VIEW_UTILIZATION_AWK="${1}" | ||
} |
File renamed without changes.
Oops, something went wrong.