Giter VIP home page Giter VIP logo

Comments (6)

krisss85 avatar krisss85 commented on June 15, 2024 1

you can try that one @Azathoth88
`
RUN curl -L https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz -o golang.tgz &&
tar zxvf golang.tgz && rm golang.tgz

RUN git clone https://github.com/bolkedebruin/rdpgw.git &&
cd rdpgw &&
env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go mod tidy &&
env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build -trimpath -tags '' -ldflags '' -o '/rdpgw/bin/rdpgw' ./cmd/rdpgw &&
mkdir -p /opt/rdpgw &&
mv /rdpgw/bin/rdpgw /opt/rdpgw/rdpgw &&
rm -rf /root/go &&
rm -rf /rdpgw
`

from rdpgw.

krisss85 avatar krisss85 commented on June 15, 2024 1

adjusted the docker compose and Dockerfile
that should work just fine with docker-compose up
#27

from rdpgw.

muhammadzikriyoev avatar muhammadzikriyoev commented on June 15, 2024

Hi, please help! Make filed

make
go mod tidy
go: github.com/spf13/[email protected] requires
github.com/prometheus/[email protected] requires
github.com/prometheus/[email protected] requires
github.com/mwitkow/[email protected]: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/ff07aa22658f49e63fef8f4c0d0db965b4d9e57f277988d8c2420beb7ba2768b: exit status 128:
fatal: git fetch-pack: expected shallow list
make: *** [mod] Ошибка 1

from rdpgw.

Azathoth88 avatar Azathoth88 commented on June 15, 2024

I tried to make image with Portainer. The output:

Step 1/10 : FROM debian:buster-slim
---> 80b9e7aadac5

Step 2/10 : RUN apt-get update && apt-get install -y git golang openssl curl && random=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) && openssl genrsa -des3 -passout pass:$random -out server.pass.key 2048 && openssl rsa -passin pass:$random -in server.pass.key -out key.pem && rm server.pass.key && openssl req -new -sha256 -key key.pem -out server.csr -subj "/C=US/ST=VA/L=SomeCity/O=MyCompany/OU=MyDivision/CN=localhost" && openssl x509 -req -days 365 -in server.csr -signkey key.pem -out server.pem

---> Using cache
---> d4111b38873d
Step 3/10 : RUN curl -L https://dl.google.com/go/go1.14.7.linux-amd64.tar.gz -o golang.tgz && tar zxvf golang.tgz && rm golang.tgz

---> Using cache
---> c7d460f848bc

Step 4/10 : RUN git clone https://github.com/bolkedebruin/rdpgw.git && cd rdpgw && env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && mkdir -p /opt/rdpgw && mv rdpgw /opt/rdpgw/rdpgw && rm -rf /root/go && rm -rf /rdpgw

---> Running in e5735cbc46d7
Cloning into 'rdpgw'...
can't load package: package .: no Go files in /rdpgw

The command '/bin/sh -c git clone https://github.com/bolkedebruin/rdpgw.git && cd rdpgw && env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && mkdir -p /opt/rdpgw && mv rdpgw /opt/rdpgw/rdpgw && rm -rf /root/go && rm -rf /rdpgw' returned a non-zero code: 1

And one Information: The Go version is out of date, see
https://dl.google.com/go/

from rdpgw.

Azathoth88 avatar Azathoth88 commented on June 15, 2024

I think the Dockerfile is corrupt.

The part produces errors:

RUN git clone https://github.com/bolkedebruin/rdpgw.git && \
    cd rdpgw && \
    env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && \
    mkdir -p /opt/rdpgw && \
    mv rdpgw /opt/rdpgw/rdpgw && \
    rm -rf /root/go && \
    rm -rf /rdpgw

The part env GOOS=linux GOARCH=amd64 shows definitly wrong. ENV is an seperatly command to build the docker container.

from rdpgw.

Azathoth88 avatar Azathoth88 commented on June 15, 2024

@krisss85 thank you very much!

from rdpgw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.