Giter Site home page Giter Site logo

Comments (3)

vi avatar vi commented on August 14, 2024

Why specifically a release is needed?
Maybe just point it to a commit you need?

from websocat.

AlperRehaYAZGAN avatar AlperRehaYAZGAN commented on August 14, 2024

For our specific use case, we are using websocat in our development environment with pre-defined Dockerfiles. This setup ensures user dev ide (like gitpod) and stream some OS information to our servers. Currently we solve it in staticly Dockerfile CMD and username:password from explicitly format (which new process could see password with "ps aux"). But it would be a great to just inject as ENV value and then new processes could not access websocat password by just typing "ps aux".

I requested this feature cause in Dockerfile we are writing multistage to build ENV supported version instead of "apk add websocat". But if you release with new version i will just reduce one stage and env value format that easy to manage. Its a presonal request actually 😅.

Yeah exact commit version clone and build from source code with Rust solves currently. Thanks for this amazing product.🔥

from websocat.

AlperRehaYAZGAN avatar AlperRehaYAZGAN commented on August 14, 2024

I tried this and if anyone read this issue later. Maybe below code helps.

# stage 2 - build websocat
FROM rust:1.78.0-alpine3.19 as buildsocat

WORKDIR /tmp

# websocat build from source:
# Issue: https://github.com/vi/websocat/issues/240
# Resolved: https://github.com/vi/websocat/tree/e289e9f039169e2bc9df3c0b1aaf15a59f948aac
RUN apk add --no-cache git openssl libressl-dev

RUN git clone https://github.com/vi/websocat.git \
    && cd websocat \
    && git checkout e289e9f039169e2bc9df3c0b1aaf15a59f948aac

WORKDIR /tmp/websocat

RUN cargo build --release --features=ssl

# Stage 3 or later you can copy executable like below.
COPY --from=buildsocat /tmp/websocat/target/release/websocat /usr/bin/websocat

from websocat.

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.