Skip to content

Instantly share code, notes, and snippets.

@onepointconsulting
Last active October 7, 2020 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onepointconsulting/91b31cc10ff8d1b1e95be1abafd1d9fc to your computer and use it in GitHub Desktop.
Save onepointconsulting/91b31cc10ff8d1b1e95be1abafd1d9fc to your computer and use it in GitHub Desktop.
set TARGET_FOLDER=.\build
set ARCH=os.linux.x86_64
set NODE_OPTIONS=--max_old_space_size=6144
rmdir /s /q %TARGET_FOLDER%
call %USERPROFILE%\AppData\Local\.meteor\meteor.bat build --verbose --directory %TARGET_FOLDER% --architecture %ARCH%
cd %TARGET_FOLDER%\bundle\programs\server
call npm install
cd ..\..\..\..
set BRANCH=tutorial
set VERSION=0.3
set IMAGE_NAME_VERSION=clf4tutorial.azurecr.io/tutorial_%BRANCH%:%VERSION%
set IMAGE_NAME_LATEST=clf4tutorial.azurecr.io/tutorial_%BRANCH%:latest
call docker build -t %IMAGE_NAME_VERSION% .
set AZURE_CR_USERNAME=<user>
set AZURE_CR_PASSWORD=<password>
call docker login clf4tutorial.azurecr.io --username %AZURE_CR_USERNAME% --password %AZURE_CR_PASSWORD%
call docker push %IMAGE_NAME_VERSION%
call docker tag %IMAGE_NAME_VERSION% %IMAGE_NAME_LATEST%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment