From 012b54d44fa1a14208aa96f3ddc7c645493397a7 Mon Sep 17 00:00:00 2001 From: Dave York Date: Sat, 19 Jun 2021 22:28:02 -0400 Subject: [PATCH 1/3] adding a dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..ce17e0b88e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:dubnium-buster-slim +RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/* + +COPY . / +ENV NODE_OPTIONS="--max_old_space_size=2048" +RUN npm install node-sass +RUN npm install -g grunt-cli +RUN npm i +CMD grunt dev From 0668a9d4cff5e4983595c7a8dd43b2d6cc2d3ff6 Mon Sep 17 00:00:00 2001 From: Dave York Date: Sat, 19 Jun 2021 22:33:14 -0400 Subject: [PATCH 2/3] update readme with docker instructions --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ac9b8174e4..38d0bfd105 100755 --- a/README.md +++ b/README.md @@ -22,6 +22,16 @@ Cryptographic operations in CyberChef should not be relied upon to provide secur [A live demo can be found here][1] - have fun! +## Running in Docker + +If you would like to run the app locally in docker please follow the steps below: + +``` +git clone https://github.com/gchq/CyberChef.git +cd CyberChef +docker build --tag cyberchef . +docker run --rm --name cyberchef -it -p 8080:8080 cyberchef +``` ## How it works From f3abb053429fc0c49342a2f447c19c1720e23045 Mon Sep 17 00:00:00 2001 From: Dave York Date: Thu, 1 Jul 2021 09:32:02 -0400 Subject: [PATCH 3/3] update readme per suggestion --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 38d0bfd105..6e80684568 100755 --- a/README.md +++ b/README.md @@ -22,17 +22,6 @@ Cryptographic operations in CyberChef should not be relied upon to provide secur [A live demo can be found here][1] - have fun! -## Running in Docker - -If you would like to run the app locally in docker please follow the steps below: - -``` -git clone https://github.com/gchq/CyberChef.git -cd CyberChef -docker build --tag cyberchef . -docker run --rm --name cyberchef -it -p 8080:8080 cyberchef -``` - ## How it works There are four main areas in CyberChef: @@ -114,6 +103,17 @@ An installation walkthrough, how-to guides for adding new operations and themes, - Submit a pull request. If you are doing this for the first time, you will be prompted to sign the [GCHQ Contributor Licence Agreement](https://cla-assistant.io/gchq/CyberChef) via the CLA assistant on the pull request. This will also ask whether you are happy for GCHQ to contact you about a token of thanks for your contribution, or about job opportunities at GCHQ. +## Running in Docker + +If you would like to run the app locally in docker please follow the steps below: + +``` +git clone https://github.com/gchq/CyberChef.git +cd CyberChef +docker build --tag cyberchef . +docker run --rm --name cyberchef -it -p 8080:8080 cyberchef +``` + ## Licencing CyberChef is released under the [Apache 2.0 Licence](https://www.apache.org/licenses/LICENSE-2.0) and is covered by [Crown Copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/).