Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaisdavid authored and benfurber committed Jul 2, 2024
1 parent a49e289 commit 663e3af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions containerization/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ COPY ./firestore.rules ./firestore.rules

COPY ./containerization/export.js ./export.js

COPY ./containerization/link-logs.js ./link-logs.js
COPY ./containerization/link.js ./link.js

# This folder needs to exist because otherwise
# the emulators error if the user did not mount
Expand All @@ -104,7 +104,7 @@ EXPOSE 4001 4002 4003 4004 4005 4006 4007 4008
ENV IS_EMULATED=true

CMD \
./link-logs.js & \
./link.js & \
# Do firebase emulators:start --help for details
firebase emulators:start \
--project demo-community-platform-emulated \
Expand Down
12 changes: 9 additions & 3 deletions containerization/export.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#!/usr/bin/env node

/*global require, console*/

const { exec } = require('child_process')

const command =
'firebase emulators:export --project demo-community-platform-emulated --force ./dump'

exec(command, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`)
console.error('exec error: ' + error)
return
}
console.log(`stdout: ${stdout}`)
console.error(`stderr: ${stderr}`)
if (stdout) {
console.log('stdout: ' + stdout)
}
if (stderr) {
console.error('stderr: ' + stderr)
}
})
2 changes: 2 additions & 0 deletions containerization/link-logs.js → containerization/link.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

/*global require, console*/

// Continuously copy the log files into a common folder
// making it easier to export them.
//
Expand Down

0 comments on commit 663e3af

Please sign in to comment.