shoomow
shoomow
Explore posts from servers
WWindmill
Created by shoomow on 11/25/2023 in #help
Exception when importing Python's CV2 lib
INIT_SCRIPT seems to be simple for ee. "pass it as env variable" - pass where? I don't know. So I tried the dockerfile way. I created a Dockerfile with following contents:
FROM ghcr.io/windmill-labs/windmill:main

RUN apt-get update
RUN apt install ffmpeg libsm6 libxext6 libgl1

CMD ["windmill"]
FROM ghcr.io/windmill-labs/windmill:main

RUN apt-get update
RUN apt install ffmpeg libsm6 libxext6 libgl1

CMD ["windmill"]
Then I changed docker-compose file like so:
windmill_worker:
pull_policy: always
build:
context: ./build
deploy:
replicas: 1
resources:
limits:
cpus: "1"
memory: 2048M
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=worker
- WORKER_GROUP=default
depends_on:
db:
condition: service_healthy
# to mount the worker folder to debug, KEEP_JOB_DIR=true and mount /tmp/windmill
volumes:
# mount the docker socket to allow to run docker containers from within the workers
- /var/run/docker.sock:/var/run/docker.sock
- worker_dependency_cache:/tmp/windmill/cache
windmill_worker:
pull_policy: always
build:
context: ./build
deploy:
replicas: 1
resources:
limits:
cpus: "1"
memory: 2048M
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=worker
- WORKER_GROUP=default
depends_on:
db:
condition: service_healthy
# to mount the worker folder to debug, KEEP_JOB_DIR=true and mount /tmp/windmill
volumes:
# mount the docker socket to allow to run docker containers from within the workers
- /var/run/docker.sock:/var/run/docker.sock
- worker_dependency_cache:/tmp/windmill/cache
Then I recieved an Exception when trying to run docker compose up -d
16 replies
WWindmill
Created by shoomow on 11/25/2023 in #help
Exception when importing Python's CV2 lib
I guess I missed this article somehow. Thanks!
16 replies
WWindmill
Created by shoomow on 11/25/2023 in #help
Exception when importing Python's CV2 lib
would it be too presumptuous of me to ask you to share a sanitized version of the Dockerfile you use in this process? I'm fairly new to Docker, and sometimes it's hard to wrap my mind around these things
16 replies
WWindmill
Created by shoomow on 11/25/2023 in #help
Exception when importing Python's CV2 lib
thank you!
16 replies
WWindmill
Created by shoomow on 11/25/2023 in #help
Exception when importing Python's CV2 lib
Pardon my stupidity, but can you tell me how to do that? AI wasn't of any help
16 replies
WWindmill
Created by shoomow on 11/23/2023 in #help
Using invisible `drawer`
thank you!
16 replies
WWindmill
Created by shoomow on 11/23/2023 in #help
Using invisible `drawer`
If I understood you correctly, the date then should be referred to as
new Date(bg_1.result[state.item].added_on).toDateString()
new Date(bg_1.result[state.item].added_on).toDateString()
... Right?
16 replies
WWindmill
Created by shoomow on 11/23/2023 in #help
Using invisible `drawer`
Do you think your team can create some helper article about that? 'Cause I have no idea how to do that.
16 replies
WWindmill
Created by shoomow on 11/23/2023 in #help
Using invisible `drawer`
It works, but I wonder if this is how it's supposed to work. Hope I don't come off as presumptuous 🙂 I really appreciate your work.
16 replies
WWindmill
Created by shoomow on 11/23/2023 in #help
Using invisible `drawer`
Ok, so I'm gonna tell you what I managed to do with that advice, and I would like you to tell me exactly how wrong I got it. 1. I added inline script for the button with the following code:
import wmill
def main(tool_index: int):
wmill.set_state({"id": tool_index})
return wmill.get_state()
import wmill
def main(tool_index: int):
wmill.set_state({"id": tool_index})
return wmill.get_state()
(pardon Python, I don't speak JS very well) 2. I connected the tool_index input to the index of the list item by setting it to iter.index 3. Inside the drawer, I have a text component that is supposed to render date:
new Date(bg_1.result[c.result.id].added_on).toDateString()
new Date(bg_1.result[c.result.id].added_on).toDateString()
Where bg_1 refers to the runnable that fuels the list, c is the button which state holds tool_index
16 replies
RRailway
Created by shoomow on 6/24/2023 in #✋|help
Problems connecting GitHub repository
Sorry, what do you mean by "leave the element open"?
10 replies
RRailway
Created by shoomow on 6/24/2023 in #✋|help
Problems connecting GitHub repository
415e79bb-04e4-4941-b90e-c40fa7a67c1e
10 replies
RRailway
Created by shoomow on 10/13/2022 in #✋|help
Environment variable issue with secondary environment
thanks for trying, @eirk
12 replies
RRailway
Created by shoomow on 10/13/2022 in #✋|help
Environment variable issue with secondary environment
@eirk do you need more info from me to fix this?
12 replies
RRailway
Created by shoomow on 10/13/2022 in #✋|help
Environment variable issue with secondary environment
TLDR;: 2 environments with (presumably) identical set-up and the same set of variables, one works, the other doesn't
12 replies
RRailway
Created by shoomow on 10/13/2022 in #✋|help
Environment variable issue with secondary environment
12 replies
RRailway
Created by shoomow on 10/13/2022 in #✋|help
Environment variable issue with secondary environment
just to clarify: - production -> DOPPLER_TOKEN = value1 (works) - development -> DOPPLER_TOKEN = value2 (doesn't work)
12 replies