Comments (7)
Not sure what you are trying to do with the local folder but for testing purposes you can look at how it is done in build_team_system.bash
Everything in build_team_system.bash
is happening in the image, so mkdir ~/some_local_folder
will actually create some_local_folder
in your image.
from ariac.
What I want to do is copy a file or folder from my local drive into the image, rather than using wget or cloning a repository. That way I can test changes to the code without having to update the repo for every little change.
from ariac.
For local testing you can use docker cp (https://docs.docker.com/engine/reference/commandline/cp/).
This is run outside of the container though, so it won't work in build_team_system.bash
from ariac.
Hmmm, I was hoping there would be a way to integrate it into the build_team_system.bash or run_team_system.bash files, so it would work seamlessly. Seems odd that it can pull a repo but not pull from the local drive.
from ariac.
I'd like to second this request.
build_team_system.bash
calls build_competitor_image.bash
@dan9thsense You'd have to copy your file/folder into the docker build context (the ariac-docker/ariac-competitor
folder. The bash script already copies the build and run team system scripts there for this reason.
Inside the Dockerfile, why not copy the entire directory instead just those two files one at a time?
from ariac.
After some testing, I think I found a way to do just that but there is a caveat.
- You need to modify ariac-docker/ariac-competitor/ariac-competitor/Dockerfile
- Copy the following command in
ariac-docker/ariac-competitor/ariac-competitor/Dockerfile
to copy the directoryariac_ws
(from your computer) to/home/ariac-user/ariac_ws
(in your image):COPY ariac_ws /home/ariac-user/ariac_ws
- Here is the caveat, the first argument of the
COPY
command (ariac_ws
) should be in your context, i.e., it should also be in the directoryariac-docker/ariac-competitor/ariac-competitor
. There are some ways to copy files and directories from outside the context but I will need to make some modifications and also long testing...and I will break things. - It's probably a good idea to paste the above command right after
FROM zeidknist/ariac4-competitor-base-melodic:latest
inDockerfile
- Modify
build_team_system.bash
:
- Remove commands that create a workspace and fetch the source code (
wget
). cd
into the workspace (/home/ariac-user/ariac_ws
) and compile it.
from ariac.
I will close this for now. Please follow the instructions above and let me know if I need to reopen this ticket.
from ariac.
Related Issues (20)
- No Google Drive folder received HOT 2
- No orders announced after the start of the competition HOT 6
- playback fails HOT 3
- attaching a part with two robots causes explosion HOT 10
- automate eval error HOT 6
- Controlling multiple robots simultaneously HOT 2
- drop part challenge does not drop a part HOT 3
- clarification on priority orders HOT 7
- details on github release HOT 2
- time limit HOT 5
- error when running with github release HOT 1
- parseURDF error HOT 1
- Add ability to pass in additional build arguments to colcon build step. HOT 5
- frame_id specified in RGB camera topics do not follow usual convention of a frame aligned with image sensor. HOT 2
- OMPL error HOT 2
- criteria for being in a quadrant HOT 5
- run_trial continues to crash HOT 5
- kit_tray tape interfere with Aruco detection? HOT 6
- judges? HOT 1
- Problems with Docker testing HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ariac.