leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Spaceman 2020-06-02T04:35:20.210400Z

For some reason my docker file with lein uberjar in it gives the following error on a push

Spaceman 2020-06-02T04:36:08.210700Z

Enumerating objects: 1986, done.
Counting objects: 100% (1984/1984), done.
Delta compression using up to 16 threads
Compressing objects: 100% (1901/1901), done.
Writing objects: 100% (1942/1942), 28.23 MiB | 1.87 MiB/s, done.
Total 1942 (delta 646), reused 0 (delta 0)
remote: Compressing source files... done.        
remote: Building source:        
remote: === Fetching app code
remote: 
remote: === Building web (Dockerfile)        
remote: 
remote: =!= Dockerfile parse error line 40: unknown instruction: LEIN        
remote: Verifying deploy...
remote: 
remote: !	Push rejected to vendomarch.        
remote: 
To <https://git.heroku.com/vendomarch.git>
 ! [remote rejected] master -&gt; master (pre-receive hook declined)
error: failed to push some refs to '<https://git.heroku.com/vendomarch.git>'

Spaceman 2020-06-02T04:37:21.210900Z

why?

eskos 2020-06-02T07:12:04.212700Z

I’d guess the lein tool isn’t available in your Docker build environment, reason for that is entirely dependent on your project setup though. There’s a longer argument to be had (and it’d be an argument, not really a discussion) about the pros and cons of building inside Docker itself which, again, is dependent on your project setup. So with this information it’s quite hard to say anything conclusive 🙂