You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed there is no prebuilt devcontainer for elasticsearch so gave setting up one a go. Jupyter should also be on there for maximizing prototyping expediency. This is the docker-compose file based on elastic and devcontainer guides:
It leads to error Error response from daemon: conflicting options: port publishing and the container type network mode. If we leave the network mode it seems to be successful but in the below image you can see from empty circles besides the port that no process is running, ie in the browser the tabs load forever
This is the .env
# Project namespace (defaults to the current folder name if not set)
#COMPOSE_PROJECT_NAME=myproject
# Password for the 'elastic' user (at least 6 characters)
ELASTIC_PASSWORD=changeme
# Password for the 'kibana_system' user (at least 6 characters)
KIBANA_PASSWORD=changeme
# Version of Elastic products
STACK_VERSION=8.7.1
# Set the cluster name
CLUSTER_NAME=docker-cluster
# Set to 'basic' or 'trial' to automatically start the 30-day trial
LICENSE=basic
#LICENSE=trial
# Port to expose Elasticsearch HTTP API to the host
ES_PORT=9200
# Port to expose Kibana to the host
KIBANA_PORT=5601
π
# Increase or decrease based on the available host memory (in bytes)
ES_MEM_LIMIT=1073741824
KB_MEM_LIMIT=1073741824
LS_MEM_LIMIT=1073741824
# SAMPLE Predefined Key only to be used in POC environments
ENCRYPTION_KEY=c34d38b3a14956121ff2170e5030b471551370178f43e5626eec58b04a30fae2
and devconainer.json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers-community/templates/tree/main/src/jupyter-datascience-notebooks
{
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"name": "elastic search",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {},
// Use base images default CMD.
"overrideCommand": false,
// Forward Jupyter port locally, mark required.
"forwardPorts": [8888, 5601, 9200],
"portsAttributes": {
"8888": {
"label": "Jupyter",
"requireLocalPort": true,
"onAutoForward": "ignore"
},
"5601": {
"label": "Kibana",
"requireLocalPort": true,
"onAutoForward": "ignore"
},
"9200": {
"label": "elastic",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-toolsai.jupyter"]
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip install --user -r requirements.txt"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
The text was updated successfully, but these errors were encountered:
I noticed there is no prebuilt devcontainer for elasticsearch so gave setting up one a go. Jupyter should also be on there for maximizing prototyping expediency. This is the docker-compose file based on elastic and devcontainer guides:
It leads to error
Error response from daemon: conflicting options: port publishing and the container type network mode
. If we leave the network mode it seems to be successful but in the below image you can see from empty circles besides the port that no process is running, ie in the browser the tabs load foreverThis is the .env
and devconainer.json
The text was updated successfully, but these errors were encountered: