-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
32 lines (29 loc) · 971 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# directory
mkdir input
mkdir features
mkdir config
mkdir notebooks
mkdir others
mkdir output
mkdir log
# template
cp -r ../ml-competition-template/config/examples config/
cp -r ../ml-competition-template/input/* input/
cp -r ../ml-competition-template/src ./
cp ../ml-competition-template/main.py main.py
cp ../ml-competition-template/.dockerignore .dockerignore
cp ../ml-competition-template/.gitignore .gitignore
cp ../ml-competition-template/Dockerfile Dockerfile
cp ../ml-competition-template/docker-compose.yml docker-compose.yml
# .gitkeep
touch features/.gitkeep
touch notebooks/.gitkeep
touch others/.gitkeep
touch output/.gitkeep
touch log/.gitkeep
# idea settings
project_name=$(basename `pwd`)
cp -r ../ml-competition-template/.idea ./
mv .idea/ml-competition-template.iml .idea/"${project_name}.iml"
sed -i -e "s/ml\-competition\-template/${project_name}/g" .idea/modules.xml
sed -i -e "s/ml\-competition\-template/${project_name}/g" .idea/deployment.xml