WangYihang / Platypus

:hammer: A modern multiple reverse shell sessions manager written in go
http://platypus-reverse-shell.vercel.app
GNU Lesser General Public License v3.0
1.52k stars 226 forks source link

M1 芯片使用Arch Linux 虚拟机无法使用docker-compose #185

Open vinniedaboi opened 1 year ago

vinniedaboi commented 1 year ago

Description

在使用docker-compose up -d 出现问题 

Reproduce

  1. sudo docker-compose up -d ...

Expected behavior

Current behavior

failed to compute cache-key...

Screenshots/Terminal log

Environments

WangYihang commented 1 year ago

看起来您好像是直接下载 master.zip?所以导致 .git 文件夹不存在。

是否有试过 git clone?

WangYihang commented 1 year ago

哦,也有可能是你的 cwd 在 deployments 下面。

试试:

cd ~/Projects/Platypus
docker compose -f deployments/docker-compose.yml up
vinniedaboi commented 1 year ago

使用git clone也一样,这里可以看到有.git文件夹

Screenshot 2023-03-30 at 9 36 29 PM
ThomasRitaine commented 4 days ago

The issue comes from the fact that that stage of the Dockerfile requires the .git directory to be in the deployments directory.

# Stage 1: Prepare source code
FROM alpine/git as source
WORKDIR /app
COPY .git .git
RUN git checkout .

So, to fix the issue, you need to copy the root .git directory to deployments directory as so:

cp -r .git deployments
WangYihang commented 4 days ago

Thank you so much for providing the solution. @ThomasRitaine