a month ago
I've got following docker-compose job to map an specific yaml config to container. How can I achieve the same results in Railway context by using a CLI in a github action workflow?
This milvus.yaml is too large to be saved in a variable, as so best way i can imagine is to upload an file to volume on Railway, but it seems there is no upload feature in CLI.
Currently the workacound is I had to run a specific dockerFile to inject this config file directly into an image, which is not safe since there is access code included in the config file.
Any other elegant solutions to automatically attach any exising file to an pre-defined image?
milvus:
container_name: knowledge-base-milvus
image: milvusdb/milvus:v2.6.2
command: ["milvus", "run", "standalone"]
environment:
ETCD_ENDPOINTS: etcd:2379
volumes:
- ./milvus.yaml:/milvus/configs/milvus.yaml4 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 month ago
a month ago
Easiest I imagine would be using something like litterbox or pastebin to upload your yaml file and then simply pull the contents of that into a yaml file through the CLI:
curl -o milvus.yaml https://example.com/milvusYou could also use something like Filebrowser to edit the contents of the volume directly (make sure to set USE_VOLUME_ROOT to 1) but since your goal is only to upload a single file, I don't think all that effort is necassery
dev
Easiest I imagine would be using something like litterbox or pastebin to upload your yaml file and then simply pull the contents of that into a yaml file through the CLI:curl -o milvus.yaml https://example.com/milvusYou could also use something like Filebrowser to edit the contents of the volume directly (make sure to set USE_VOLUME_ROOT to 1) but since your goal is only to upload a single file, I don't think all that effort is necassery
a month ago
I am looking for an automated solution that is as easy to use as Docker Compose. Pastebin could be a potential idea, but it requires more effort in terms of security and additional modifications to predefined images. While I believe it could eventually work, it would be great if this functionality could be natively supported by the Railway platform.
a month ago
There are plans for native volume CRUD support, but as of right now I don't think there's an easier solution other than what I suggested
Status changed to Solved brody • about 1 month ago