Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Add fpm config-files flag#92

Open
natesales wants to merge 1 commit intocloudflare:masterfrom
natesales:patch-1
Open

Add fpm config-files flag#92
natesales wants to merge 1 commit intocloudflare:masterfrom
natesales:patch-1

Conversation

@natesales
Copy link

This addresses #88 where package updates overwrite the /etc/defaults/gortr file, loosing any configured runtime arguments. By adding the --config-files flag, fpm instructs the system package manager to prompt before overwriting.

@natesales natesales changed the title Add from config-files flag Add fpm config-files flag Jan 25, 2021
@natesales
Copy link
Author

Ah, I typoed that commit message, twice! I've force pushed to my branch to fix that, my bad.

Copy link

@ly1980168 ly1980168 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
{
"name": "IETF Datatracker",
"dockerComposeFile": ["../docker-compose.yml", "docker-compose.extend.yml"],
"service": "app",
"workspaceFolder": "/workspace",
"shutdownAction": "stopCompose",
"postCreateCommand": "/docker-init.sh",
"containerEnv": {
"EDITOR_VSCODE": "true"
},

"features": {
    "docker-in-docker": {
        "version": "latest"
    }
},

// Set *default* container specific settings.json values on container create.
"settings": { 
    "terminal.integrated.defaultProfile.linux": "zsh",
    "python.pythonPath": "/usr/local/bin/python",
    "python.languageServer": "Pylance",
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": true,
    "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
    "python.formatting.blackPath": "/usr/local/py-utils/bin/black",
    "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
    "python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
    "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
    "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
    "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
    "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
    "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
    "python.testing.pytestArgs": [
        "ietf"
    ],
    "python.testing.unittestEnabled": true,
    "python.testing.pytestEnabled": false,
    "python.testing.unittestArgs": [
        "-v",
        "-s",
        "./ietf",
        "-p",
        "test*.py"
    ],
    "sqltools.connections": [
        // Default connection to dev DB container
        {
            "name": "Local Dev",
            "server": "db",
            "port": 3306,
            "database": "ietf_utf8",
            "username": "django",
            "password": "RkTkDPFnKpko",
            "driver": "MySQL",
            "askForPassword": false,
            "connectionTimeout": 60
        }
    ]
    // "python.envFile": "${workspaceFolder}/.devcontainer/dev.env"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
	"arcanis.vscode-zipfs",
	"batisteo.vscode-django",
    "dbaeumer.vscode-eslint",
	"eamodio.gitlens",
	"editorconfig.editorconfig",
	"vue.volar",
	"mrmlnc.vscode-duplicate",
	"ms-azuretools.vscode-docker",
	"ms-python.python",
	"ms-python.vscode-pylance",
	"mtxr.sqltools-driver-mysql",
    "mtxr.sqltools",
	"mutantdino.resourcemonitor",
	"oderwat.indent-rainbow",
	"redhat.vscode-yaml",
	"spmeesseman.vscode-taskexplorer",
	"visualstudioexptteam.vscodeintellicode"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000, 3306],

"portsAttributes": {
    "3000": {
        "label": "Vite",
        "onAutoForward": "silent"
    },
    "3306": {
        "label": "MariaDB",
        "onAutoForward": "silent"
    },
    "8000": {
        "label": "Datatracker",
        "onAutoForward": "notify"
    }
},

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "sh /docker-init.sh",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "dev"

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants