Comments (1)
I think devcontainer features in general only address the installation of additional packages / tools to the base image. So, like other devcontainer features, you can only select different version or different way of install a package. The setting of default credential for MySQL seems like out of scope of devcontainer features. However, to achieve this, you can try to use postCreateCommand
of devcontainer.
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/shyim/devcontainers-features/php:0": {
"version": 8.1
},
"ghcr.io/devcontainers-contrib/features/mysql-homebrew:1": {},
},
"postCreateCommand": "mysqladmin -u root password 123456"
}
where the user name is root
and password is 123456
. This command run only once, when the devcontainer is created
from features.
Related Issues (20)
- [Bug]: gh-release multiple binary matches were found in archive HOT 2
- [Feature Request]: Option to select different ansible distributions HOT 3
- [Bug]: `clojure-asdf` does not set JAVA_HOME
- [Bug]: `clojure-asdf` does not install rlwrap, so `clj` fails
- [Feature Request]: Mkdocs Enhancement
- Heroku CLI tar download URL HOT 1
- [Bug]: [syncthing]: command not found
- [Bug]: HOT 1
- [Bug]: Failed to build ansible feature HOT 1
- TypeORM cli
- [Feature Request]: Specify pipx version
- [Feature Request]:
- [Bug]: terraform init bash: terraform: command not foun
- [Feature Request]: Google Cloud CLI
- [Feature Request]: AQUA
- [Bug]: nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.53.0_Linux-64bit.tar.gz', 'trivy_0.53.0_Linux-ARM.tar.gz'] HOT 1
- [Bug]: mkdocs installation of configured plugins crashes
- [Bug]: Starship not working - Exec format error
- [Bug]: age feature failed to build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from features.