feat: refs #5483 myt major, run cmd include fixtures at build stage
This commit is contained in:
parent
ef1a28b3a3
commit
c893a473ed
|
@ -113,8 +113,7 @@ class Run extends Command {
|
||||||
|
|
||||||
Object.assign(runOptions, null, {
|
Object.assign(runOptions, null, {
|
||||||
env: `RUN_CHOWN=${runChown}`,
|
env: `RUN_CHOWN=${runChown}`,
|
||||||
detach: true,
|
detach: true
|
||||||
volume: `${this.opts.mytDir}:/workspace`
|
|
||||||
});
|
});
|
||||||
const ct = await docker.run(opts.code, null, runOptions);
|
const ct = await docker.run(opts.code, null, runOptions);
|
||||||
const server = new Server(ct, dbConfig);
|
const server = new Server(ct, dbConfig);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.5.34",
|
"version": "1.5.35",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.5.34",
|
"version": "1.5.35",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sqltools/formatter": "^1.2.5",
|
"@sqltools/formatter": "^1.2.5",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.5.34",
|
"version": "1.6.0",
|
||||||
"author": "Verdnatura Levante SL",
|
"author": "Verdnatura Levante SL",
|
||||||
"description": "MySQL version control",
|
"description": "MySQL version control",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
|
@ -10,4 +10,6 @@ RUN gosu mysql docker-init.sh
|
||||||
RUN echo "[LOG] Import finished." \
|
RUN echo "[LOG] Import finished." \
|
||||||
&& rm -rf /workspace
|
&& rm -rf /workspace
|
||||||
|
|
||||||
|
COPY fixtures.*.sql dump/
|
||||||
|
|
||||||
USER mysql
|
USER mysql
|
||||||
|
|
Loading…
Reference in New Issue