Giter Club home page Giter Club logo

Comments (4)

unclejustin avatar unclejustin commented on May 27, 2024 1

Thanks for the reply @brophdawg11 ! I am setting the env vars in the task definition like it shows in the first link.

The strangest thing to me is that the envars are available in ssh and in context. Almost like node is "waiting" for them.

I am not confident this is "Remix" problem either, but a node problem. Currently I am working on generating a .env file during the container build and referencing that, which seems to be working so far. I'll report back once I have a workaround.

from remix.

brophdawg11 avatar brophdawg11 commented on May 27, 2024

How are you setting the environment variable? I'm not too familiar with AWS but I found https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html and https://docs.aws.amazon.com/AmazonECS/latest/developerguide/use-environment-file.html on a quick search - are you doing either of those to set the value?

from remix.

github-actions avatar github-actions commented on May 27, 2024

This issue has been automatically closed because we haven't received a response from the original author 🙈. This automation helps keep the issue tracker clean from issues that are unactionable. Please reach out if you have more information for us! 🙂

from remix.

unclejustin avatar unclejustin commented on May 27, 2024

Just in case anyone stumbles on this in the future, here's my workaround.

In my github action where I'm building the docker container I inline all of the build args like this:

- name: Build, tag, and push image to Amazon ECR
        id: build-image
        run: |
          # Build a docker container and
          # push it to ECR so that it can
          # be deployed to ECS.
          docker build --progress=plain -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
            --build-arg GOOGLE_CALLBACK_URL=${{ env.GOOGLE_CALLBACK_URL }} \
            .
          docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
          echo "imageid=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT

The important bit is the --build-arg. Then in the Dockerfile

ARG GOOGLE_CALLBACK_URL
ENV GOOGLE_CALLBACK_URL=${GOOGLE_CALLBACK_URL}

Now GOOGLE_CALLBACK_URL will be available in the app.

from remix.

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.