This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note you may need to update the path to our sample data. | |
let data = require('./src/stories/menus/megaMenu/megamenu.json'); | |
const sortByName = (a, b) => { | |
return a.name > b.name ? 1 : b.name > a.name ? -1 : 0; | |
}; | |
// This function should be memoized for performance reasons. | |
const sortParent = (data) => { | |
let sortedData = [...data]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To build: docker build --force-rm=true -t scimgateway-data:latest . | |
# To run: docker run -d --name scimgateway-data -t scimgateway-data:latest | |
FROM busybox:latest | |
MAINTAINER Jeffrey Gilbert | |
RUN mkdir -p /home/scimgateway/config | |
VOLUME /home/scimgateway/config | |
CMD ["echo", "Data container for scimgateway created and will now shutdown. No need to run again."] |