Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docker support #675

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
.github
tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ npm-debug.log
travis.log
build
.vscode
.idea
.*.swp
.DS_Store
src/core/config/modules/*
Expand Down
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# build a small nginx image with built app
FROM nginx

## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*

## From 'build' directory copy website to default nginx public folder
COPY ./build/prod /usr/share/nginx/html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ Cryptographic operations in CyberChef should not be relied upon to provide secur

[A live demo can be found here][1] - have fun!

## Quick start with docker-compose
```
git clone https://github.com/gchq/CyberChef.git && cd CyberChef
docker-compose up -d
```

open this address in your browser: _http://localhost:8080/_


## How it works

Expand Down
8 changes: 8 additions & 0 deletions buildDocker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# build latest image
grunt prod

docker build -t loopsun/cyberchef:latest .

docker push loopsun/cyberchef:latest
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2.0'

services:
cyberchef:
restart: always
image: loopsun/cyberchef:latest
ports:
- 8080:80