Skip to content

Commit

Permalink
fix: chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
aFcFzF committed Feb 14, 2024
1 parent 2d0b074 commit 892b1dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java_docker_base/assets/init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash

tar -zxf ./TencentKona-17.0.10.b1-jdk_linux-x86_64.tar.gz

Expand Down
2 changes: 1 addition & 1 deletion server_demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ workdir /work/proj/demo
copy ./target/demo-1.0.jar ./
copy ./release/start.sh ./

RUN ["chmod", "+x", "./start.sh"]
RUN ["chmod", "777", "./start.sh"]

USER root

Expand Down
2 changes: 1 addition & 1 deletion server_demo/release/docker_build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash

DOCKER_NAME=swr.cn-north-4.myhuaweicloud.com/mark-dev/server-demo;
DOCKER_VERSION="$(git rev-parse --short HEAD)";
Expand Down
3 changes: 3 additions & 0 deletions server_demo/release/start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/bash

cat ~/.bashrc

echo "--------"
whoami
echo "--------"

source ~/.bashrc
java -jar ./demo-1.0.jar || true;

0 comments on commit 892b1dd

Please sign in to comment.