alter dockerfile to docker/build dir

This commit is contained in:
xiaochun.liu 2020-05-12 00:21:21 +08:00
parent 39a281c543
commit c1215add7a
4 changed files with 9 additions and 9 deletions

View File

@ -44,7 +44,7 @@ jobs:
${{ runner.os }}-maven- ${{ runner.os }}-maven-
- name: Build Image - name: Build Image
run: | run: |
sh ./dockerfile/hooks/build sh ./docker/build/hooks/build
- name: Docker Run - name: Docker Run
run: | run: |
export VERSION=$(cat $(pwd)/pom.xml | grep '<version>' -m 1 | awk '{print $1}' | sed 's/<version>//' | sed 's/<\/version>//') export VERSION=$(cat $(pwd)/pom.xml | grep '<version>' -m 1 | awk '{print $1}' | sed 's/<version>//' | sed 's/<\/version>//')

View File

@ -109,16 +109,16 @@ In Unix-Like, Example:
```bash ```bash
$ cd path/incubator-dolphinscheduler $ cd path/incubator-dolphinscheduler
$ sh ./dockerfile/hooks/build $ sh ./docker/build/hooks/build
``` ```
In Windows, Example: In Windows, Example:
```bat ```bat
c:\incubator-dolphinscheduler>.\dockerfile\hooks\build.bat c:\incubator-dolphinscheduler>.\docker\build\hooks\build.bat
``` ```
Please read `./dockerfile/hooks/build` `./dockerfile/hooks/build.bat` script files if you don't understand Please read `./docker/build/hooks/build` `./docker/build/hooks/build.bat` script files if you don't understand
## Environment Variables ## Environment Variables

View File

@ -109,16 +109,16 @@ dolphinscheduler frontend
```bash ```bash
$ cd path/incubator-dolphinscheduler $ cd path/incubator-dolphinscheduler
$ sh ./dockerfile/hooks/build $ sh ./docker/build/hooks/build
``` ```
Windows系统, 如下: Windows系统, 如下:
```bat ```bat
c:\incubator-dolphinscheduler>.\dockerfile\hooks\build.bat c:\incubator-dolphinscheduler>.\docker\build\hooks\build.bat
``` ```
如果你不理解这些脚本 `./dockerfile/hooks/build` `./dockerfile/hooks/build.bat`,请阅读里面的内容。 如果你不理解这些脚本 `./docker/build/hooks/build` `./docker/build/hooks/build.bat`,请阅读里面的内容。
## 环境变量 ## 环境变量

View File

@ -42,8 +42,8 @@ echo -e "Current Directory is $(pwd)\n"
echo -e "mvn -B clean compile package -Prelease -Dmaven.test.skip=true" echo -e "mvn -B clean compile package -Prelease -Dmaven.test.skip=true"
mvn -B clean compile package -Prelease -Dmaven.test.skip=true mvn -B clean compile package -Prelease -Dmaven.test.skip=true
# mv dolphinscheduler-bin.tar.gz file to dockerfile directory # mv dolphinscheduler-bin.tar.gz file to docker/build directory
echo -e "mv $(pwd)/dolphinscheduler-dist/target/apache-dolphinscheduler-incubating-${VERSION}-dolphinscheduler-bin.tar.gz $(pwd)/dockerfile/\n" echo -e "mv $(pwd)/dolphinscheduler-dist/target/apache-dolphinscheduler-incubating-${VERSION}-dolphinscheduler-bin.tar.gz $(pwd)/docker/build/\n"
mv $(pwd)/dolphinscheduler-dist/target/apache-dolphinscheduler-incubating-${VERSION}-dolphinscheduler-bin.tar.gz $(pwd)/dockerfile/ mv $(pwd)/dolphinscheduler-dist/target/apache-dolphinscheduler-incubating-${VERSION}-dolphinscheduler-bin.tar.gz $(pwd)/dockerfile/
# docker build # docker build