Follows is the error I’m observing
git push resin master
Counting objects: 98, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (95/95), done.
Writing objects: 100% (98/98), 60.30 KiB | 0 bytes/s, done.
Total 98 (delta 43), reused 0 (delta 0)
[Info] Starting build for[MYGITHUBPROJECT], user [ME]
[Info] Dashboard link: {MYDASHBOARD]
[Info] Building on ARM01
[Error] Project type resolution could not be performed, please add one of the following:
[Error] Dockerfile
[Error] Dockerfile.template
[Error] package.json
[Error] Could not determine the project type
remote: error: hook declined to update refs/heads/master
To [MYGITLOCATION]
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to
'[MYGITLOCATION]'
This is the dir structure of my project:
ls
Dockerfile client-certs logs node_modules package.json
app.js config.js mqtt-log-pub-js.initd package-lock.json service
This is the contents of the Dockerfile:
more Dockerfile
FROM resin/%%RESIN_MACHINE_NAME%%-node:6-slim
RUN mkdir -p /usr/src/mqtt-log-pub-js
WORKDIR /usr/src/mqtt-log-pub-js
COPY . /usr/src/mqtt-log-pub-js
RUN JOBS=MAX npm install --production --unsafe-perm && npm cache clean && rm -rf /tmp/*
ENV INITSYSTEM on
CMD [ "node", "app.js" ]
This is the contents of the package.json file:
more package.json
{
"name": "mqtt-node",
"version": "0.0.1",
"description": "",
"main": "app.js",
"scripts": {
"start": "node app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"dotenv": "^4.0.0",
"mqtt": "^2.12.0",
"object-sizeof": "^1.2.0",
"request": "^2.81.0",
"traverse": "^0.6.6",
"url": "^0.11.0"
}
}
To my knowledge, I have both the Dockerfile and package.json file required to build and package up this project. I can deploy this to a standard alpine linux docker container as-is. What am i doing wrong here?