Hi @ramiro ,
I am facing one issue when I create another image and use that in okteto.yaml image section of dev.
I installed angularcli through nvm and npm that Dockerfile. But ng works in bash shell. Hence I added below highlighted line
RUN . $NVM_DIR/nvm.sh
&& . $NVM_DIR/bash_completion
RUN nvm install $NODE_VERSION
&& nvm alias default $NODE_VERSION
&& nvm use default
&& npm install -g @angular/cli
ENTRYPOINT [“.”,“~/.bashrc”]
when I specify below line ng not working when I run okteto up.
command: cd /usr/src/app && mvn -f myapp-war/pom.xml spring-boot:run
So I had to add . ~/.bashrc in command to make it work as below. Any idea?
Hi @ramiro ,
Here .bashrc is created inside image when nvm and rpm install executes. I needed that .bashrc to be sourced when I run mvn -f myapp-war/pom.xml spring-boot:run inside okteto development container.
As I dont have that .bashrc in advance, mounting will not work. .bashrc is already available inside dev container, not sure how to source it other than running . ~/.bashrc in command section of okteto.yaml