Create volumes folders in zk init
@@ -9,6 +9,7 @@ import * as env from './env';
import { up } from './up';
export async function init() {
+ await createVolumes();
if (!process.env.CI) {
await checkEnv();
await env.gitHooks();
@@ -26,6 +27,12 @@ export async function init() {
await contract.redeploy();
}
+async function createVolumes() {
+ await utils.exec('mkdir -p $ZKSYNC_HOME/volumes/geth');
+ await utils.exec('mkdir -p $ZKSYNC_HOME/volumes/postgres');
+ await utils.exec('mkdir -p $ZKSYNC_HOME/volumes/tesseracts');
+}
+
async function checkEnv() {
const tools = ['node', 'yarn', 'docker', 'docker-compose', 'cargo', 'psql', 'pg_isready', 'diesel', 'solc'];
for (const tool of tools) {
