Rozukai
Rozukai
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
Access project data inside of a railway service
N/A
5 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
It worked, thanks a lot, you can close this
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
Thanks, I will try 😉
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
This app work well
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
No description
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
It's a Golang fiber custom API
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
And I've activated the private networking of course
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
My Dockerfile build fine
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
Here is my final "FROM" in my Dockerfile :
FROM bash:4.1.17 AS final

# Import the user and group files from the first stage.
COPY --from=builder /user/group /user/passwd /etc/

# Import the Certificate-Authority certificates for enabling HTTPS.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Import the compiled executable from the first stage.
COPY --from=builder /app /app

# Import the start script
COPY --from=builder /usr/local/go/src/github.com/EzeXchange-API/APICore/start.sh /start.sh
RUN chmod +x /start.sh

RUN apk add --no-cache curl

# Perform any further action as an unprivileged user.
USER nobody:nobody

EXPOSE 8000

# Run the compiled binary.
ENTRYPOINT ["bash", "/start.sh"]
FROM bash:4.1.17 AS final

# Import the user and group files from the first stage.
COPY --from=builder /user/group /user/passwd /etc/

# Import the Certificate-Authority certificates for enabling HTTPS.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Import the compiled executable from the first stage.
COPY --from=builder /app /app

# Import the start script
COPY --from=builder /usr/local/go/src/github.com/EzeXchange-API/APICore/start.sh /start.sh
RUN chmod +x /start.sh

RUN apk add --no-cache curl

# Perform any further action as an unprivileged user.
USER nobody:nobody

EXPOSE 8000

# Run the compiled binary.
ENTRYPOINT ["bash", "/start.sh"]
16 replies
RRailway
Created by Rozukai on 1/17/2024 in #✋|help
cURL issue at start
62a7d631-15d2-4bde-a633-b2e28b306105
16 replies
RRailway
Created by Rozukai on 1/16/2024 in #✋|help
There is a way to update automatically env var when deploying ?
N/A
5 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
You can close this thread
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
I found a solution, I've created the database with the corresponding user 😉
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
It's a pgAdmin like
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
On heidiSQL with the POSTGRES_USER
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
I will dig to see if I find something
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
It worked well before the migration
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
When I create my users and database I do that :
CREATE DATABASE example_database;
CREATE USER example_database_user WITH PASSWORD 'secure_password';
GRANT ALL PRIVILEGES ON DATABASE example_database TO example_database_user;
CREATE DATABASE example_database;
CREATE USER example_database_user WITH PASSWORD 'secure_password';
GRANT ALL PRIVILEGES ON DATABASE example_database TO example_database_user;
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
I got this error btw : pq: permission denied for schema public
16 replies
RRailway
Created by Rozukai on 12/19/2023 in #✋|help
Error while connecting to database through private network
It worked by waiting ^^
16 replies