Comments (6)
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.
adjusted the docker compose and Dockerfile
that should work just fine with docker-compose up
#27
from rdpgw.
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.
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.
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.
@krisss85 thank you very much!
from rdpgw.
Related Issues (20)
- BUG: There has been an update in the RDPGW code what broke disk passtrough old image from 20-07-2023 does work same host
- Template default.rdp please add remoteapplicationmode:i:1 HOT 3
- Some issues after recent work: boolean fields in RDP template can't be parsed + entrypoint inhibits args HOT 3
- cannot login into windows servers through rdpgw by windows remote desktop client HOT 1
- No success with tokeninfo HOT 6
- Error running docker-compose local.yml HOT 1
- How to us it?Enable rdpgw locally HOT 10
- Build fails with "Error 1"
- Token supplied to the function is invalid
- Question regarding validity duration of generated Remote Desktop configurations
- Question regarding the name of the generated RDP Configuration
- Docker image not using environmental variables or rdpgw.yml HOT 2
- RDS Session Collection HOT 1
- docker: keycloak | unknown option
- mstsc stucks on "configuring remote session..." HOT 1
- Can't figure out how to use it at all HOT 1
- token validation failed due to cannot get token HOT 1
- Working docker-compose? HOT 3
- Is there any quickstart or step by step guide available? HOT 6
- Bug: Disk pass trough stopt working after some MS update need config file change but wont take over from template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdpgw.