Skip to content
Open
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
80 changes: 42 additions & 38 deletions assemblyline/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"command": "git clone https://github.com/CybercentreCanada/assemblyline-docker-compose assemblyline",
"name": "Clone the latest release of the Docker appliance"
},
{
"command": "cd assemblyline && source .env && openssl req -nodes -x509 -newkey rsa:4096 -keyout ./config/nginx.key -out ./config/nginx.crt -days 365 -subj \"/C=CA/ST=Ontario/L=Ottawa/O=CCCS/CN=$DOMAIN\"",
"name": "Generate self-signed certificates"
},
{
"command": "cd assemblyline && docker compose pull elasticsearch_minimal redis minio ui_minimal frontend",
"name": "Pull required images"
},
{
"command": "docker build nginx-ssl-frontend -t cccs/nginx-ssl-frontend",
"name": "Build NGINX image that's compatible with CodeSandbox"
},
{
"command": "sed -i s/443:443/4443:443/g assemblyline/common/nginx.yaml",
"name": "Swap port forwarding to be compatible with CodeSandbox"
},
{
"name": "Start up minimal appliance",
"command": "cd assemblyline && cp .env /project/sandbox/.env && docker compose up -d elasticsearch_minimal redis minio ui_minimal frontend nginx_minimal"
},
{
"name": "Bootstrap local user accounts",
"command": "cd assemblyline && docker compose -f bootstrap-compose.yaml up -d first_time_setup"
},
{
"name": "Generate mock data",
"command": "docker exec ui python3 -m assemblyline.odm.random_data.create_test_data full"
}
],
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"command": "git clone https://github.com/CybercentreCanada/assemblyline-docker-compose --depth 1 assemblyline || true",
"name": "Clone the latest release of the Docker appliance"
},
{
"command": "ln -s assemblyline/.env || true",
"name": "Link environment file to local workspace"
},
{
"command": "source .env && openssl req -nodes -x509 -newkey rsa:4096 -keyout ./assemblyline/config/nginx.key -out ./assemblyline/config/nginx.crt -days 365 -subj \"/C=CA/ST=Ontario/L=Ottawa/O=CCCS/CN=$DOMAIN\"",
"name": "Generate self-signed certificates"
},
{
"command": "docker compose --project-directory assemblyline pull elasticsearch_minimal redis minio ui_minimal frontend",
"name": "Pull required images"
},
{
"command": "docker build nginx-ssl-frontend -t cccs/nginx-ssl-frontend",
"name": "Build NGINX image that's compatible with CodeSandbox"
},
{
"command": "sed -i 's/\"443:443\"/\"4443:443\"/g' assemblyline/common/nginx.yaml",
"name": "Swap port forwarding to be compatible with CodeSandbox"
},
{
"name": "Start up minimal appliance",
"command": "docker compose --project-directory assemblyline up -d elasticsearch_minimal redis minio ui_minimal frontend nginx_minimal"
},
{
"name": "Bootstrap local user accounts",
"command": "docker compose --project-directory assemblyline -f bootstrap-compose.yaml up -d first_time_setup"
},
{
"name": "Generate mock data",
"command": "docker exec ui python3 -m assemblyline.odm.random_data.create_test_data full"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {}
}
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {}
}
4 changes: 2 additions & 2 deletions assemblyline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ For more information on how to deploy the full version of Assemblyline (which al
### Accessing the UI
CodeSandbox should already startup an instance of Assemblyline via the [.tasks](./.codesandbox/tasks.json) and you should see a preview exposed on port 4443. You can click on the "Open Preview in a new window" icon to access Assemblyline's UI within your browser.

![Open preview in a new tab](./images/open_preview.png)
![Open preview in a new tab](https://raw.githubusercontent.com/codesandbox/sandbox-templates/main/assemblyline/images/open_preview.png)

### Logging In
You can sign into the local account using `admin` for both the username and password field.

![Default login credentials](./images/default_login.png)
![Default login credentials](https://raw.githubusercontent.com/codesandbox/sandbox-templates/main/assemblyline/images/default_login.png)

### What's Next?
That's about it from me! You can explore the system to your heart's content 🤓.
Expand Down
Loading