-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance the Compose development set-up
Changes are: - Allows Docker image builds in a restricted company context (limited access to remote Ubuntu, Python or Node repositories) using variables, - Centralizes variables in a .env file (not versioned), - Adds a .env.template file as .env template with predefined variables, - Use a distinct directory for every service dependencies, - Use a per-service environment file, - Simplifies how development configuration files are transfered to Timesketch, - Simplifies manipulation of containers using Compose CLI instead of the Docker one, - Updates documentation.
- Loading branch information
1 parent
47b717c
commit f8d06cb
Showing
18 changed files
with
700 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,6 @@ | |
|
||
# Exclude JetBrains IDE files | ||
/.idea/ | ||
|
||
# Exclude Compose environment file | ||
/docker/dev/.env |
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 |
---|---|---|
|
@@ -44,3 +44,6 @@ vagrant/*.log | |
|
||
# Exclude JetBrains IDE files | ||
.idea/ | ||
|
||
# Exclude Compose environment file | ||
docker/dev/.env |
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,15 @@ | ||
GIFT_PPA_TRACK="stable" | ||
GIFT_PPA_URL="https://ppa.launchpadcontent.net/gift/${GIFT_PPA_TRACK}/ubuntu" | ||
NODE_VERSION="18.x" | ||
NODE_PPA_URL="https://deb.nodesource.com/node_${NODE_VERSION}" | ||
NODE_NPMRC="" | ||
PYTHON_PIP_CONF="" | ||
|
||
TIMESKETCH_BASE_IMAGE="ubuntu:22.04" | ||
TIMESKETCH_CONF_DIR="/etc/timesketch" | ||
TIMESKETCH_SECRET_KEY="L4np0jV3yAdAFdbVzWRMaBqiFMV8FKYd+Je1WKE40o8=" | ||
TIMESKETCH_USER="dev" | ||
TIMESKETCH_PASSWORD="dev" | ||
|
||
POSTGRES_USER="timesketch" | ||
POSTGRES_PASSWORD="password" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,6 @@ | ||
discovery.type="single-node" | ||
bootstrap.memory_lock="true" | ||
network.host="0.0.0.0" | ||
OPENSEARCH_JAVA_OPTS="-Xms2g -Xmx2g" | ||
DISABLE_INSTALL_DEMO_CONFIG="true" | ||
DISABLE_SECURITY_PLUGIN="true" # TODO: Enable when we have migrated the python client to Opensearch as well. |
Oops, something went wrong.